@@ -3,6 +3,7 @@ name: Build Hello-World
33
44env :
55 PRODUCT_NAME : hello-world
6+ SDP_RELEASE_TAG : ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
67
78on :
89 workflow_dispatch :
1112 push :
1213 branches :
1314 - main
15+ tags :
16+ - ' *'
1417 paths :
1518 # To check dependencies, run this ( you will need to consider transitive dependencies)
1619 # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]'
2528 steps :
2629 - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2730 - id : shard
28- uses : stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1 .0
31+ uses : stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2 .0
2932 with :
3033 product-name : ${{ env.PRODUCT_NAME }}
3134 outputs :
@@ -48,18 +51,19 @@ jobs:
4851 uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
4952
5053 - name : Free Disk Space
51- uses : stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1 .0
54+ uses : stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2 .0
5255
5356 - name : Build Product Image
5457 id : build
55- uses : stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1 .0
58+ uses : stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2 .0
5659 with :
5760 product-name : ${{ env.PRODUCT_NAME }}
5861 product-version : ${{ matrix.versions }}
5962 build-cache-password : ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }}
63+ sdp-version : ${{ env.SDP_RELEASE_TAG }}
6064
6165 - name : Publish Container Image on docker.stackable.tech
62- uses : stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1 .0
66+ uses : stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2 .0
6367 with :
6468 image-registry-uri : docker.stackable.tech
6569 image-registry-username : github
6973 source-image-uri : localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }}
7074
7175 - name : Publish Container Image on oci.stackable.tech
72- uses : stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1 .0
76+ uses : stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2 .0
7377 with :
7478 image-registry-uri : oci.stackable.tech
7579 image-registry-username : robot$sdp+github-action-build
9296 uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
9397
9498 - name : Free Disk Space
95- uses : stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1 .0
99+ uses : stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2 .0
96100 - name : Publish and Sign Image Index Manifest to docker.stackable.tech
97- uses : stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1 .0
101+ uses : stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2 .0
98102 with :
99103 image-registry-uri : docker.stackable.tech
100104 image-registry-username : github
@@ -103,7 +107,7 @@ jobs:
103107 image-index-manifest-tag : ${{ matrix.versions }}-stackable0.0.0-dev
104108
105109 - name : Publish and Sign Image Index Manifest to oci.stackable.tech
106- uses : stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1 .0
110+ uses : stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2 .0
107111 with :
108112 image-registry-uri : oci.stackable.tech
109113 image-registry-username : robot$sdp+github-action-build
0 commit comments