11# This workflow will build a docker image, push it to ghcr.io, and deploy it to an Azure WebApp.
2+ # v1.0.0 - This tag coordinates the other reusable parts of this workflow.
3+ # * app-build-docker-image.yml
4+ # * app-deploy-to-azure.yml
5+ # * app-is-deployable.yml
26name : Build and Deploy to prod service app
37
48on :
8185 build-and-publish-image :
8286 name : Build and publish Docker image
8387 needs : get-version
84- uses : clearlydefined/operations/.github/workflows/app-build-docker-image.yml@elr/reusable-deploy-workflow
88+ uses : clearlydefined/operations/.github/workflows/app-build-docker-image.yml@v1.0.0
8589 secrets :
8690 DEPLOY_TOKEN : ${{ secrets.DEPLOY_TOKEN }}
8791 PRODUCTION_DEPLOYERS : ${{ secrets.PRODUCTION_DEPLOYERS }}
9397 deploy-primary-app-to-azure :
9498 name : Deploy to primary Azure app
9599 needs : [get-version, build-and-publish-image]
96- uses : clearlydefined/operations/.github/workflows/app-deploy-to-azure.yml@elr/reusable-deploy-workflow
100+ uses : clearlydefined/operations/.github/workflows/app-deploy-to-azure.yml@v1.0.0
97101 secrets :
98102 AZURE_WEBAPP_PUBLISH_PROFILE : ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
99103 AZURE_CREDENTIALS : ${{ secrets.AZURE_CREDENTIALS }}
@@ -109,7 +113,7 @@ jobs:
109113 name : Deploy to secondary Azure app
110114 if : ${{ inputs.secondary-azure-app-name-postfix != '' }}
111115 needs : [get-version, build-and-publish-image]
112- uses : clearlydefined/operations/.github/workflows/app-deploy-to-azure.yml@elr/reusable-deploy-workflow
116+ uses : clearlydefined/operations/.github/workflows/app-deploy-to-azure.yml@v1.0.0
113117 secrets :
114118 AZURE_WEBAPP_PUBLISH_PROFILE : ${{ secrets.AZURE_SECONDARY_WEBAPP_PUBLISH_PROFILE }}
115119 AZURE_CREDENTIALS : ${{ secrets.AZURE_CREDENTIALS }}
0 commit comments