Skip to content

Commit 453e03e

Browse files
authored
Merge pull request #75 from clearlydefined/elr/fix-workflow-ref
coordinate reusable workflow by assigning release v1.0.0
2 parents 4c86122 + 11445cc commit 453e03e

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/app-build-and-deploy.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
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
26
name: Build and Deploy to prod service app
37

48
on:
@@ -81,7 +85,7 @@ jobs:
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 }}
@@ -93,7 +97,7 @@ jobs:
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 }}

.github/workflows/app-build-docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ on:
3131

3232
jobs:
3333
check-deployable:
34-
uses: clearlydefined/operations/.github/workflows/app-is-deployable.yml@elr/reusable-deploy-workflow
34+
uses: clearlydefined/operations/.github/workflows/app-is-deployable.yml@v1.0.0
3535
with:
3636
deploy-env: ${{ inputs.deploy-env }}
3737
secrets:

.github/workflows/app-deploy-to-azure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ on:
3737

3838
jobs:
3939
check-deployable:
40-
uses: clearlydefined/operations/.github/workflows/app-is-deployable.yml@elr/reusable-deploy-workflow
40+
uses: clearlydefined/operations/.github/workflows/app-is-deployable.yml@v1.0.0
4141
with:
4242
deploy-env: ${{ inputs.deploy-env }}
4343
secrets:

0 commit comments

Comments
 (0)