1616 permissions :
1717 contents : read
1818 outputs :
19- image_tags : ${{ steps.generate_image_tags.outputs.image_tags }}
19+ default_image_uri : ${{ steps.generate_image_tags.outputs.default_image_uri }}
20+ unique_image_uri : ${{ steps.generate_image_tags.outputs.unique_image_uri }}
2021 unique_image_tag : ${{ steps.generate_image_tags.outputs.unique_image_tag }}
2122 ecr_repo_uri : ${{ steps.generate_image_tags.outputs.ecr_repo_uri }}
2223 steps :
@@ -30,12 +31,13 @@ jobs:
3031 IMAGE_REPOSITORY : ${{ env.ECR_REPOSITORY_URI }}
3132 BRANCH_IMAGE_TAG : ${{ github.ref_name }}
3233 run : |
33- unique_image_tag ="${BRANCH_IMAGE_TAG}-$(git rev-parse --short HEAD) "
34+ default_image_uri ="${IMAGE_REPOSITORY}:${BRANCH_IMAGE_TAG} "
3435
35- image_tags="${IMAGE_REPOSITORY}:${BRANCH_IMAGE_TAG},${IMAGE_REPOSITORY}:${unique_image_tag}"
36+ unique_image_tag="${BRANCH_IMAGE_TAG}-$(git rev-parse --short HEAD)"
37+ unique_image_uri="${IMAGE_REPOSITORY}:${unique_image_tag}"
3638
37- echo "unique_image_tag =${unique_image_tag }" >> $GITHUB_OUTPUT
38- echo "image_tags =${image_tags }" >> $GITHUB_OUTPUT
39+ echo "default_image_uri =${default_image_uri }" >> $GITHUB_OUTPUT
40+ echo "unique_image_uri =${unique_image_uri }" >> $GITHUB_OUTPUT
3941 echo "ecr_repo_uri=${IMAGE_REPOSITORY}" >> $GITHUB_OUTPUT
4042
4143
5254 enable-aws-ecr : true
5355 aws-ecr-region : eu-west-1
5456 oci-full-repository : ${{ needs.prepare-variables.outputs.ecr_repo_uri }}
55- tags : ${{ needs.prepare-variables.outputs.image_tags }}
57+ tags : |
58+ ${{ needs.prepare-variables.outputs.default_image_uri }}
59+ ${{ needs.prepare-variables.outputs.unique_image_uri }}
5660
5761 amd64-runner-image : ubuntu-24.04
5862 arm64-runner-image : ubuntu-24.04-arm
0 commit comments