Skip to content

11599 replace all existing contact methods phones mails etc with a li… #9

11599 replace all existing contact methods phones mails etc with a li…

11599 replace all existing contact methods phones mails etc with a li… #9

name: Deploy Designer
on:
push:
branches: [ main ]
paths:
- '.github/workflows/deploy-designer.yaml'
- '.github/workflows/template-docker-push.yaml'
- '.github/workflows/template-flux-config-push.yaml'
- '.github/workflows/template-helm-push.yaml'
- '.github/workflows/template-short-sha.yaml'
- 'backend/**'
- 'frontend/**'
- 'Dockefile'
- 'package.json'
- 'charts/altinn-designer/**'
- 'charts/altinn-designer-config/**'
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
get-short-sha:
uses: ./.github/workflows/template-short-sha.yaml
docker-build-push:
needs: get-short-sha
uses: ./.github/workflows/template-docker-push.yaml
with:
tags: ${{ needs.get-short-sha.outputs.short-sha }},latest
registry-name: altinntjenestercontainerregistry.azurecr.io
repository-name: altinn-core
secrets:
client-id: ${{ secrets.AZURE_CLIENT_ID_FC }}
tenant-id: ${{ secrets.AZURE_TENANT_ID_FC }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID_FC }}
build-args: DESIGNER_VERSION=${{ needs.get-short-sha.outputs.short-sha }}
helm-push:
needs: get-short-sha
uses: ./.github/workflows/template-helm-push.yaml
with:
tag: 0.1.0+${{ needs.get-short-sha.outputs.short-sha }} # Helm version needs to be valid sematic version
chart-name: altinn-designer
registry-name: altinntjenestercontainerregistry.azurecr.io
secrets:
client-id: ${{ secrets.AZURE_CLIENT_ID_FC }}
tenant-id: ${{ secrets.AZURE_TENANT_ID_FC }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID_FC }}
flux-config-push:
needs: [get-short-sha, docker-build-push, helm-push]
strategy:
matrix:
environment: [dev, staging, prod]
uses: ./.github/workflows/template-flux-config-push.yaml
with:
tag: ${{ needs.get-short-sha.outputs.short-sha }}
registry-name: altinntjenestercontainerregistry.azurecr.io
environment: ${{ matrix.environment }}
config-chart-name: altinn-designer-config
artifact-name: altinn-designer
helm-set-arguments: environmentName=${{ matrix.environment }},chartVersion=0.1.0+${{ needs.get-short-sha.outputs.short-sha }},imageTag=${{ needs.get-short-sha.outputs.short-sha }}
secrets:
client-id: ${{ secrets.AZURE_CLIENT_ID_FC }}
tenant-id: ${{ secrets.AZURE_TENANT_ID_FC }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID_FC }}