Skip to content

Commit

Permalink
Bump deploy-azure-container-apps-action v3.0.0 (#634)
Browse files Browse the repository at this point in the history
* iBump deploy-azure-container-apps-action v3.0.0

* Uses OIDC with Azure/login instead of Credential based authentication
* DFE-Digital/deploy-azure-container-apps-action@v2.6.0...v3.0.0

* Use matrix to load different secrets

---------

Co-authored-by: Ash Davies <3853061+DrizzlyOwl@users.noreply.github.com>
  • Loading branch information
Stretch96 and DrizzlyOwl authored Oct 23, 2024
1 parent 69f367a commit ab4b746
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/build-and-push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@ jobs:
echo "release=${RELEASE}" >> $GITHUB_OUTPUT
deploy-image:
permissions:
id-token: write
contents: read
packages: write
name: Deploy '${{ needs.set-env.outputs.branch }}' to ${{ needs.set-env.outputs.environment }}
needs: [ set-env ]
uses: DFE-Digital/deploy-azure-container-apps-action/.github/workflows/build-push-deploy.yml@v2.5.0
uses: DFE-Digital/deploy-azure-container-apps-action/.github/workflows/build-push-deploy.yml@v3.0.0
strategy:
matrix:
image: [
Expand All @@ -57,11 +61,11 @@ jobs:
]
include:
- image: "Dockerfile"
aca_name_secret: "AZURE_ACA_NAME"
aca_name: "ACA_CONTAINERAPP_NAME"
prefix: ""
name: "tramsapi-app"
- image: "Dockerfile.PersonsApi"
aca_name_secret: "AZURE_PERSONS_API_ACA_NAME"
aca_name: "ACA_CONTAINERAPP_PERSONS_API_NAME"
prefix: "persons-api-"
name: "personsapi-app"
with:
Expand All @@ -75,11 +79,13 @@ jobs:
COMMIT_SHA="${{ needs.set-env.outputs.checked-out-sha }}"
CI=true
secrets:
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
azure-subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
azure-acr-client-id: ${{ secrets.ACR_CLIENT_ID }}
azure-acr-name: ${{ secrets.ACR_NAME }}
azure-acr-credentials: ${{ secrets.ACR_CREDENTIALS }}
azure-aca-credentials: ${{ secrets.AZURE_ACA_CREDENTIALS }}
azure-aca-name: ${{ secrets[matrix.aca_name_secret] }}
azure-aca-resource-group: ${{ secrets.AZURE_ACA_RESOURCE_GROUP }}
azure-aca-client-id: ${{ secrets.ACA_CLIENT_ID }}
azure-aca-name: ${{ secrets.[matrix.aca_name] }}
azure-aca-resource-group: ${{ secrets.ACA_RESOURCE_GROUP }}

create-tag:
name: Tag and release
Expand Down

0 comments on commit ab4b746

Please sign in to comment.