Skip to content

Commit

Permalink
Pull image_location from paketo_build step
Browse files Browse the repository at this point in the history
communitiesuk/funding-service-design-workflows#215
started to output the paketo image URI, so we can now reuse that rather
than passing fragments into the deploy steps which are used to rebuild
the image URI manually. This will reduce problems with the image URI
potentially going out of sync, and allow it to be used for eg database
migrations.
  • Loading branch information
samuelhwilliams committed Dec 5, 2024
1 parent 4c77325 commit 26c5513
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/copilot_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ jobs:
with:
environment: dev
app_name: pre-award-stores
version: sha-${{ github.sha }}
image_location: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ github.sha }}
db_name: pre_award_stores
image_location: ${{ needs.paketo_build.outputs.image_location }}

post_dev_deploy_tests:
needs: dev_deploy
Expand Down Expand Up @@ -93,9 +92,8 @@ jobs:
with:
environment: test
app_name: pre-award-stores
version: sha-${{ github.sha }}
image_location: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ github.sha }}
db_name: pre_award_stores
image_location: ${{ needs.paketo_build.outputs.image_location }}

post_test_deploy_tests:
needs: [ dev_deploy, post_dev_deploy_tests, test_deploy, paketo_build, setup ]
Expand Down Expand Up @@ -126,9 +124,8 @@ jobs:
with:
environment: uat
app_name: pre-award-stores
version: sha-${{ github.sha }}
image_location: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ github.sha }}
db_name: pre_award_stores
image_location: ${{ needs.paketo_build.outputs.image_location }}

post_uat_deploy_tests:
needs: [ dev_deploy, post_dev_deploy_tests, test_deploy, post_test_deploy_tests, uat_deploy, paketo_build, setup ]
Expand Down Expand Up @@ -159,6 +156,5 @@ jobs:
with:
environment: prod
app_name: pre-award-stores
version: sha-${{ github.sha }}
image_location: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ github.sha }}
db_name: pre_award_stores
image_location: ${{ needs.paketo_build.outputs.image_location }}

0 comments on commit 26c5513

Please sign in to comment.