11# This workflow will build a docker image, push it to ghcr.io, and deploy it to an Azure WebApp.
2- # v2 .0.0 - This tag coordinates the other reusable parts of this workflow.
2+ # v3 .0.0 - This tag coordinates the other reusable parts of this workflow.
33# * app-build-docker-image.yml
44# * app-deploy-to-azure.yml
55# * app-is-deployable.yml
7979 uses : actions/checkout@v4.1.1
8080 with :
8181 repository : ' clearlydefined/operations'
82- ref : ' v2 .0.0'
82+ ref : ' v3 .0.0'
8383 path : ' operations'
8484 - name : Get version from package-lock.json
8585 id : get_version
@@ -97,20 +97,20 @@ jobs:
9797 build-and-publish-image :
9898 name : Build and publish Docker image
9999 needs : get-version
100- uses : clearlydefined/operations/ .github/workflows/app-build-docker-image.yml@v2.0.0
100+ uses : ./ .github/workflows/app-build-docker-image.yml
101101 secrets :
102102 DEPLOY_TOKEN : ${{ secrets.DEPLOY_TOKEN }}
103103 PRODUCTION_DEPLOYERS : ${{ secrets.PRODUCTION_DEPLOYERS }}
104104 with :
105105 deploy-env : ${{ inputs.deploy-env }}
106106 application-type : ${{ inputs.application-type }}
107- image-tag : ${{ needs.get-version.outputs.version }}
107+ application-version : ${{ needs.get-version.outputs.version }}
108108 build-args : ${{ inputs.docker-build-args }}
109109
110110 deploy-primary-app-to-azure :
111111 name : Deploy to primary Azure app
112112 needs : [get-version, build-and-publish-image]
113- uses : clearlydefined/operations/ .github/workflows/app-deploy-to-azure.yml@v2.0.0
113+ uses : ./ .github/workflows/app-deploy-to-azure.yml
114114 secrets :
115115 AZURE_WEBAPP_PUBLISH_PROFILE : ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
116116 AZURE_CREDENTIALS : ${{ secrets.AZURE_CREDENTIALS }}
@@ -119,14 +119,13 @@ jobs:
119119 with :
120120 deploy-env : ${{ inputs.deploy-env }}
121121 azure-webapp-name : ${{ inputs.azure-app-base-name }}${{ inputs.azure-app-name-postfix }}
122- application-version : ${{ needs.get-version.outputs.version }}
123122 image-name-with-tag : ${{ needs.build-and-publish-image.outputs.docker-image-name-with-tag }}
124123
125124 deploy-secondary-app-to-azure :
126125 name : Deploy to secondary Azure app
127126 if : ${{ inputs.secondary-azure-app-name-postfix != '' }}
128127 needs : [get-version, build-and-publish-image]
129- uses : clearlydefined/operations/ .github/workflows/app-deploy-to-azure.yml@v2.0.0
128+ uses : ./ .github/workflows/app-deploy-to-azure.yml
130129 secrets :
131130 AZURE_WEBAPP_PUBLISH_PROFILE : ${{ secrets.AZURE_SECONDARY_WEBAPP_PUBLISH_PROFILE }}
132131 AZURE_CREDENTIALS : ${{ secrets.AZURE_CREDENTIALS }}
@@ -135,5 +134,4 @@ jobs:
135134 with :
136135 deploy-env : ${{ inputs.deploy-env }}
137136 azure-webapp-name : ${{ inputs.azure-app-base-name }}${{ inputs.secondary-azure-app-name-postfix }}
138- application-version : ${{ needs.get-version.outputs.version }}
139137 image-name-with-tag : ${{ needs.build-and-publish-image.outputs.docker-image-name-with-tag }}
0 commit comments