From 6058850615ccb30831e7122b3d5f1db306b367b4 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 5 Dec 2024 15:01:45 +0000 Subject: [PATCH] Pull image_location from paketo_build step https://github.com/communitiesuk/funding-service-design-workflows/pull/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. --- .github/workflows/copilot_deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/copilot_deploy.yml b/.github/workflows/copilot_deploy.yml index 43f07e36..fdf56312 100644 --- a/.github/workflows/copilot_deploy.yml +++ b/.github/workflows/copilot_deploy.yml @@ -62,7 +62,7 @@ jobs: with: environment: dev app_name: assessment - version: sha-${{ github.sha }} + image_location: ${{ needs.paketo_build.outputs.image_location }} post_dev_deploy_tests: needs: dev_deploy @@ -92,7 +92,7 @@ jobs: with: environment: test app_name: assessment - version: sha-${{ github.sha }} + image_location: ${{ needs.paketo_build.outputs.image_location }} post_test_deploy_tests: needs: test_deploy @@ -123,7 +123,7 @@ jobs: with: environment: uat app_name: assessment - version: sha-${{ github.sha }} + image_location: ${{ needs.paketo_build.outputs.image_location }} post_uat_deploy_tests: needs: uat_deploy @@ -154,4 +154,4 @@ jobs: with: environment: prod app_name: assessment - version: sha-${{ github.sha }} + image_location: ${{ needs.paketo_build.outputs.image_location }}