1616 permissions :
1717 contents : read
1818 outputs :
19- image_tags : ${{ steps.generate_image_tags.outputs.image_tags }}
20- unique_image_tag : ${{ steps.generate_image_tags.outputs.unique_image_tag }}
19+ default_image_uri : ${{ steps.generate_image_tags.outputs.default_image_uri }}
20+ unique_image_uri : ${{ steps.generate_image_tags.outputs.unique_image_uri }}
2121 ecr_repo_uri : ${{ steps.generate_image_tags.outputs.ecr_repo_uri }}
2222 steps :
2323 # Required by generate_image_tags
@@ -30,12 +30,13 @@ jobs:
3030 IMAGE_REPOSITORY : ${{ env.ECR_REPOSITORY_URI }}
3131 BRANCH_IMAGE_TAG : ${{ github.ref_name }}
3232 run : |
33- unique_image_tag ="${BRANCH_IMAGE_TAG}-$(git rev-parse --short HEAD)"
33+ default_image_uri ="${IMAGE_REPOSITORY}:${BRANCH_IMAGE_TAG}
3434
35- image_tags="${IMAGE_REPOSITORY}:${BRANCH_IMAGE_TAG},${IMAGE_REPOSITORY}:${unique_image_tag}"
35+ unique_image_tag="${BRANCH_IMAGE_TAG}-$(git rev-parse --short HEAD)"
36+ unique_image_uri="${IMAGE_REPOSITORY}:${unique_image_tag}"
3637
37- echo "unique_image_tag =${unique_image_tag }" >> $GITHUB_OUTPUT
38- echo "image_tags =${image_tags }" >> $GITHUB_OUTPUT
38+ echo "default_image_uri =${default_image_uri }" >> $GITHUB_OUTPUT
39+ echo "unique_image_uri =${unique_image_uri }" >> $GITHUB_OUTPUT
3940 echo "ecr_repo_uri=${IMAGE_REPOSITORY}" >> $GITHUB_OUTPUT
4041
4142
5253 enable-aws-ecr : true
5354 aws-ecr-region : eu-west-1
5455 oci-full-repository : ${{ needs.prepare-variables.outputs.ecr_repo_uri }}
55- tags : ${{ needs.prepare-variables.outputs.image_tags }}
56+ tags : |
57+ ${{ needs.prepare-variables.outputs.default_image_uri }}
58+ ${{ needs.prepare-variables.outputs.unique_image_uri }}
5659
5760 amd64-runner-image : ubuntu-24.04
5861 arm64-runner-image : ubuntu-24.04-arm
0 commit comments