@@ -147,9 +147,11 @@ jobs:
147147 matrix :
148148 product_version_pairs : ${{ fromJson(needs.generate_matrix.outputs.product_version_pairs) }}
149149 env :
150- SDP_VERSION : ${{ needs.determine_sdp_version.outputs.sdp_version }}
151150 PRODUCT_NAME : ${{ matrix.product_version_pairs.name }}
152- PRODUCT_VERSION : ${{ matrix.product_version_pairs.version }}
151+ # Ideally we would want to use the suggested-image-index-manifest-tag output of stackablestackabletech/actions/build-product-image,
152+ # however, since the builds are done in a matrix, we are not able to get the unique outputs. There are hacky attempts, eg:
153+ # https://github.com/orgs/community/discussions/17245#discussioncomment-6770056, but we have opted to construct the tag here:
154+ IMAGE_INDEX_MANIFEST_TAG : ${{ matrix.product_version_pairs.version }}-stackable${{ needs.determine_sdp_version.outputs.sdp_version }}-pr${{ github.event.pull_request.number }}
153155 steps :
154156 - name : Checkout Repository
155157 uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
@@ -161,7 +163,7 @@ jobs:
161163 image-registry-username : github
162164 image-registry-password : ${{ secrets.NEXUS_PASSWORD }}
163165 image-repository : stackable/${{ env.PRODUCT_NAME }}
164- image-index-manifest-tag : ${{ env.PRODUCT_VERSION }}-stackable${{ env.SDP_VERSION }}-pr${{ github.event.pull_request.number }}
166+ image-index-manifest-tag : ${{ env.IMAGE_INDEX_MANIFEST_TAG }}
165167
166168 - name : Publish and Sign Image Index Manifest to oci.stackable.tech
167169 uses : stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0
@@ -170,4 +172,4 @@ jobs:
170172 image-registry-username : robot$sdp+github-action-build
171173 image-registry-password : ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }}
172174 image-repository : sdp/${{ env.PRODUCT_NAME }}
173- image-index-manifest-tag : ${{ env.PRODUCT_VERSION }}-stackable${{ env.SDP_VERSION }}-pr${{ github.event.pull_request.number }}
175+ image-index-manifest-tag : ${{ env.IMAGE_INDEX_MANIFEST_TAG }}
0 commit comments