-
Notifications
You must be signed in to change notification settings - Fork 6
62 lines (57 loc) · 1.54 KB
/
build-push-deploy-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: "Build, Push and Deploy - Docs"
on:
workflow_call:
inputs:
version:
type: string
description: ""
required: true
build-push:
type: boolean
required: false
default: true
deploy:
type: boolean
required: false
default: true
workflow_dispatch:
inputs:
version:
type: string
description: ""
required: true
build-push:
type: boolean
required: true
default: true
deploy:
type: boolean
required: true
default: true
permissions:
id-token: write
contents: read
jobs:
build-push-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and push to registry
uses: ./.github/actions/docker-build-push-acr
if: inputs.build-push
with:
app: docs
tag: ${{ inputs.version }}
acr-username: ${{ secrets.ACR_USERNAME }}
acr-password: ${{ secrets.ACR_PASSWORD }}
acr-login-server: ${{ secrets.ACR_LOGIN_SERVER }}
- name: Deploy/Upgrade Helm release
if: inputs.deploy
uses: ./.github/actions/helm-upgrade-install-release
with:
release-name: docs
tag: ${{ inputs.version }}
github-token: ${{ secrets.GITHUB_TOKEN }}
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
azure-subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}