Skip to content

Commit 6c04521

Browse files
committed
update workflow
1 parent b3c2604 commit 6c04521

1 file changed

Lines changed: 19 additions & 6 deletions

File tree

.github/workflows/azure-deploy-www.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,29 @@ jobs:
2424
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
2525
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
2626

27-
- name: build & deploy to container apps
27+
- name: acr login
28+
run: az acr login --name designsystemetacr
29+
30+
- name: build & push (www)
31+
uses: docker/build-push-action@v5
32+
with:
33+
context: .
34+
file: ./Dockerfile
35+
target: www
36+
platforms: linux/amd64
37+
push: true
38+
tags: designsystemetacr.azurecr.io/www:${{ github.sha }}
39+
40+
- name: deploy
2841
uses: azure/container-apps-deploy-action@v1
2942
with:
3043
resourceGroup: rg-designsystemet-test
3144
containerAppName: www-test-ca-app
32-
containerAppEnvironment: www-test-ca # existing env name
45+
containerAppEnvironment: www-test-ca
3346
acrName: designsystemetacr
34-
imageToBuild: designsystemetacr.azurecr.io/www:${{ github.sha }}
35-
dockerfilePath: ./Dockerfile
36-
buildArguments: "--target www"
47+
imageToDeploy: designsystemetacr.azurecr.io/www:${{ github.sha }}
3748
targetPort: 8000
3849
ingress: external
39-
envVars: "PORT=8000,HOST=0.0.0.0"
50+
environmentVariables: |
51+
PORT=8000
52+
HOST=0.0.0.0

0 commit comments

Comments
 (0)