Skip to content

Commit

Permalink
Merge pull request #31 from communitiesuk/bau/reusable-image-location
Browse files Browse the repository at this point in the history
Pull image location from paketo build step
  • Loading branch information
samuelhwilliams authored Dec 5, 2024
2 parents 4c77325 + 26c5513 commit 25a0af0
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 25a0af0

Please sign in to comment.