Skip to content

Build, Push and Deploy - CMS #1

Build, Push and Deploy - CMS

Build, Push and Deploy - CMS #1

name: "Build, Push and Deploy - CMS"
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: cms
tag: ${{ inputs.version }}
acr-username: ${{ secrets.ACR_USERNAME }}
acr-password: ${{ secrets.ACR_PASSWORD }}
acr-login-server: ${{ secrets.ACR_LOGIN_SERVER }}
build-args: |
PUBLIC_URL=https://regels.overheid.nl/cms/
- name: Deploy/Upgrade Helm release
if: inputs.deploy
uses: ./.github/actions/helm-upgrade-install-release
with:
release-name: cms
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 }}