Skip to content

Commit 17ca6bf

Browse files
committed
ci(pr_test_build_images): Add extra tag data to include PR number
1 parent 05d49bb commit 17ca6bf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/pr_test_build_images.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,13 @@ jobs:
106106

107107
- name: Build Product Image
108108
id: build
109-
uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0
109+
uses: stackabletech/actions/build-product-image@af2f00208b2a6175751dd5b4ca704db566e2d4fa # 0.2.0 TODO: Use released version
110110
with:
111111
product-name: ${{ env.PRODUCT_NAME }}
112112
product-version: ${{ env.PRODUCT_VERSION }}
113113
build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }}
114114
sdp-version: ${{ env.SDP_VERSION }}
115+
extra-tag-data: pr${{ github.event.pull_request.number }}
115116

116117
- run: |
117118
docker images
@@ -123,7 +124,7 @@ jobs:
123124
image-registry-username: github
124125
image-registry-password: ${{ secrets.NEXUS_PASSWORD }}
125126
image-repository: stackable/${{ env.PRODUCT_NAME }}
126-
image-manifest-tag: ${{ steps.build.outputs.image-manifest-tag }}-pr${{ github.event.pull_request.number }}
127+
image-manifest-tag: ${{ steps.build.outputs.image-manifest-tag }}
127128
source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }}
128129

129130
- name: Publish Container Image on oci.stackable.tech
@@ -133,7 +134,7 @@ jobs:
133134
image-registry-username: robot$sdp+github-action-build
134135
image-registry-password: ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }}
135136
image-repository: sdp/${{ env.PRODUCT_NAME }}
136-
image-manifest-tag: ${{ steps.build.outputs.image-manifest-tag }}-pr${{ github.event.pull_request.number }}
137+
image-manifest-tag: ${{ steps.build.outputs.image-manifest-tag }}
137138
source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }}
138139

139140
publish_manifests:

0 commit comments

Comments
 (0)