File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,26 +104,30 @@ jobs:
104104 with :
105105 registry-type : public
106106 - name : Create ECR manifest with explicit tag
107+ if : github.event.release.name != ''
107108 id : create-ecr-manifest-explicit
108109 run : |
109110 docker manifest create "${{ needs.build-and-upload-image-to-ecr.outputs.ecr_registry_repository }}:${{ github.event.release.name }}" \
110111 "${{ needs.build-and-upload-image-to-ecr.outputs.full_image_x86_64 }}" \
111112 "${{ needs.build-and-upload-image-to-ecr.outputs.full_image_arm64 }}"
112113 - name : Annotate ECR manifest with explicit arm64 tag
114+ if : github.event.release.name != ''
113115 id : annotate-ecr-manifest-explicit-arm64
114116 run : |
115117 docker manifest annotate "${{ needs.build-and-upload-image-to-ecr.outputs.ecr_registry_repository }}:${{ github.event.release.name }}" \
116118 "${{ needs.build-and-upload-image-to-ecr.outputs.full_image_arm64 }}" \
117119 --arch arm64 \
118120 --os linux
119121 - name : Annotate ECR manifest with explicit amd64 tag
122+ if : github.event.release.name != ''
120123 id : annotate-ecr-manifest-explicit-amd64
121124 run : |
122125 docker manifest annotate "${{ needs.build-and-upload-image-to-ecr.outputs.ecr_registry_repository }}:${{ github.event.release.name }}" \
123126 "${{ needs.build-and-upload-image-to-ecr.outputs.full_image_x86_64 }}" \
124127 --arch amd64 \
125128 --os linux
126129 - name : Push ECR manifest with explicit version
130+ if : github.event.release.name != ''
127131 id : push-ecr-manifest-explicit
128132 run : |
129133 docker manifest push "${{ needs.build-and-upload-image-to-ecr.outputs.ecr_registry_repository }}:$${{ github.event.release.name }}"
You can’t perform that action at this time.
0 commit comments