diff --git a/.github/ISSUE_TEMPLATE/add-product.md b/.github/ISSUE_TEMPLATE/add-product.md index f3df5aeca..72b90c663 100644 --- a/.github/ISSUE_TEMPLATE/add-product.md +++ b/.github/ISSUE_TEMPLATE/add-product.md @@ -20,7 +20,7 @@ assignees: '' - [ ] Add a `versions.py` file to the folder. Add all required key-value pairs. - [ ] Add a new "Update Product" issue template in `.github/ISSUE_TEMPLATE/` folder. See existing ones as a guide of reference. -- [ ] Add a new `dev_.yml` GitHub Action workflow in the +- [ ] Add a new `build_.yml` GitHub Action workflow in the `.github/workflows` folder. Use existing local action whenever possible or consider creating a new one when there is no fitting action available. - [ ] Run `.scripts/update_readme_badges.sh` to generate the new status badge. diff --git a/.github/workflows/dev_airflow.yaml b/.github/workflows/build_airflow.yaml similarity index 79% rename from .github/workflows/dev_airflow.yaml rename to .github/workflows/build_airflow.yaml index 8853949d5..88943ea98 100644 --- a/.github/workflows/dev_airflow.yaml +++ b/.github/workflows/build_airflow.yaml @@ -3,14 +3,15 @@ name: Build Airflow env: PRODUCT_NAME: airflow + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' @@ -18,7 +19,7 @@ on: - vector/** - stackable-base/** - .github/actions/** - - .github/workflows/dev_airflow.yaml + - .github/workflows/build_airflow.yaml jobs: generate_matrix: @@ -27,7 +28,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -50,18 +51,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -71,7 +73,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -94,9 +96,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -105,7 +107,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_druid.yaml b/.github/workflows/build_druid.yaml similarity index 79% rename from .github/workflows/dev_druid.yaml rename to .github/workflows/build_druid.yaml index b7ed9f5fc..ef1ba5ca8 100644 --- a/.github/workflows/dev_druid.yaml +++ b/.github/workflows/build_druid.yaml @@ -3,14 +3,15 @@ name: Build Druid env: PRODUCT_NAME: druid + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' @@ -20,7 +21,7 @@ on: - java-base/** - java-devel/** - .github/actions/** - - .github/workflows/dev_druid.yaml + - .github/workflows/build_druid.yaml jobs: generate_matrix: @@ -29,7 +30,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -52,18 +53,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -73,7 +75,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -96,9 +98,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -107,7 +109,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_hadoop.yaml b/.github/workflows/build_hadoop.yaml similarity index 79% rename from .github/workflows/dev_hadoop.yaml rename to .github/workflows/build_hadoop.yaml index 02f84bbe5..82e5969ac 100644 --- a/.github/workflows/dev_hadoop.yaml +++ b/.github/workflows/build_hadoop.yaml @@ -3,14 +3,15 @@ name: Build Hadoop env: PRODUCT_NAME: hadoop + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' @@ -20,7 +21,7 @@ on: - java-base/** - java-devel/** - .github/actions/** - - .github/workflows/dev_hadoop.yaml + - .github/workflows/build_hadoop.yaml jobs: generate_matrix: @@ -29,7 +30,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -52,18 +53,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -73,7 +75,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -96,9 +98,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -107,7 +109,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_hbase.yaml b/.github/workflows/build_hbase.yaml similarity index 79% rename from .github/workflows/dev_hbase.yaml rename to .github/workflows/build_hbase.yaml index 4bc1025eb..672a8d32e 100644 --- a/.github/workflows/dev_hbase.yaml +++ b/.github/workflows/build_hbase.yaml @@ -3,14 +3,15 @@ name: Build HBase env: PRODUCT_NAME: hbase + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' @@ -21,7 +22,7 @@ on: - java-base/** - java-devel/** - .github/actions/** - - .github/workflows/dev_hbase.yaml + - .github/workflows/build_hbase.yaml jobs: generate_matrix: @@ -30,7 +31,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -53,18 +54,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -74,7 +76,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -97,9 +99,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -108,7 +110,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_hello-world.yaml b/.github/workflows/build_hello-world.yaml similarity index 78% rename from .github/workflows/dev_hello-world.yaml rename to .github/workflows/build_hello-world.yaml index c2c395420..ef0e183ae 100644 --- a/.github/workflows/dev_hello-world.yaml +++ b/.github/workflows/build_hello-world.yaml @@ -3,20 +3,21 @@ name: Build Hello-World env: PRODUCT_NAME: hello-world + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' - hello-world/** - .github/actions/** - - .github/workflows/dev_hello-world.yaml + - .github/workflows/build_hello-world.yaml jobs: generate_matrix: @@ -25,7 +26,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -48,18 +49,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -69,7 +71,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -92,9 +94,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -103,7 +105,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_hive.yaml b/.github/workflows/build_hive.yaml similarity index 79% rename from .github/workflows/dev_hive.yaml rename to .github/workflows/build_hive.yaml index c0e688839..c195afa64 100644 --- a/.github/workflows/dev_hive.yaml +++ b/.github/workflows/build_hive.yaml @@ -3,14 +3,15 @@ name: Build Hive env: PRODUCT_NAME: hive + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' @@ -21,7 +22,7 @@ on: - java-base/** - java-devel/** - .github/actions/** - - .github/workflows/dev_hive.yaml + - .github/workflows/build_hive.yaml jobs: generate_matrix: @@ -30,7 +31,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -53,18 +54,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -74,7 +76,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -97,9 +99,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -108,7 +110,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_java-base.yaml b/.github/workflows/build_java-base.yaml similarity index 78% rename from .github/workflows/dev_java-base.yaml rename to .github/workflows/build_java-base.yaml index dbee211a6..454354afc 100644 --- a/.github/workflows/dev_java-base.yaml +++ b/.github/workflows/build_java-base.yaml @@ -3,20 +3,21 @@ name: Build Java Base env: PRODUCT_NAME: java-base + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' - java-base/** - .github/actions/** - - .github/workflows/dev_java-base.yaml + - .github/workflows/build_java-base.yaml jobs: generate_matrix: @@ -25,7 +26,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -48,18 +49,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -69,7 +71,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -92,9 +94,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -103,7 +105,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_java-devel.yaml b/.github/workflows/build_java-devel.yaml similarity index 78% rename from .github/workflows/dev_java-devel.yaml rename to .github/workflows/build_java-devel.yaml index ef652c8ad..149617595 100644 --- a/.github/workflows/dev_java-devel.yaml +++ b/.github/workflows/build_java-devel.yaml @@ -3,20 +3,21 @@ name: Build Java Development env: PRODUCT_NAME: java-devel + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' - java-devel/** - .github/actions/** - - .github/workflows/dev_java-devel.yaml + - .github/workflows/build_java-devel.yaml jobs: generate_matrix: @@ -25,7 +26,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -48,18 +49,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -69,7 +71,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -92,9 +94,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -103,7 +105,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_kafka-testing-tools.yaml b/.github/workflows/build_kafka-testing-tools.yaml similarity index 79% rename from .github/workflows/dev_kafka-testing-tools.yaml rename to .github/workflows/build_kafka-testing-tools.yaml index f50d6094c..e153a7a6a 100644 --- a/.github/workflows/dev_kafka-testing-tools.yaml +++ b/.github/workflows/build_kafka-testing-tools.yaml @@ -3,14 +3,15 @@ name: Build Kafka Testing Tools env: PRODUCT_NAME: kafka-testing-tools + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' @@ -20,7 +21,7 @@ on: - stackable-base/** - java-base/** - .github/actions/** - - .github/workflows/dev_kafka-testing-tools.yaml + - .github/workflows/build_kafka-testing-tools.yaml jobs: generate_matrix: @@ -29,7 +30,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -52,18 +53,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -73,7 +75,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -96,9 +98,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -107,7 +109,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_kafka.yaml b/.github/workflows/build_kafka.yaml similarity index 79% rename from .github/workflows/dev_kafka.yaml rename to .github/workflows/build_kafka.yaml index 2205a695d..2f5b84e0f 100644 --- a/.github/workflows/dev_kafka.yaml +++ b/.github/workflows/build_kafka.yaml @@ -3,14 +3,15 @@ name: Build Kafka env: PRODUCT_NAME: kafka + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' @@ -22,7 +23,7 @@ on: - java-base/** - java-devel/** - .github/actions/** - - .github/workflows/dev_kafka.yaml + - .github/workflows/build_kafka.yaml jobs: generate_matrix: @@ -31,7 +32,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -54,18 +55,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -75,7 +77,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -98,9 +100,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -109,7 +111,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_kcat.yaml b/.github/workflows/build_kcat.yaml similarity index 79% rename from .github/workflows/dev_kcat.yaml rename to .github/workflows/build_kcat.yaml index 5dbf20881..fb37f810d 100644 --- a/.github/workflows/dev_kcat.yaml +++ b/.github/workflows/build_kcat.yaml @@ -3,14 +3,15 @@ name: Build kcat env: PRODUCT_NAME: kcat + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' @@ -20,7 +21,7 @@ on: - stackable-base/** - java-base/** - .github/actions/** - - .github/workflows/dev_kcat.yaml + - .github/workflows/build_kcat.yaml jobs: generate_matrix: @@ -29,7 +30,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -52,18 +53,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -73,7 +75,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -96,9 +98,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -107,7 +109,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_krb5.yaml b/.github/workflows/build_krb5.yaml similarity index 78% rename from .github/workflows/dev_krb5.yaml rename to .github/workflows/build_krb5.yaml index 9efc9c98c..79ee1c041 100644 --- a/.github/workflows/dev_krb5.yaml +++ b/.github/workflows/build_krb5.yaml @@ -3,20 +3,21 @@ name: Build Krb5 env: PRODUCT_NAME: krb5 + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' - krb5/** - .github/actions/** - - .github/workflows/dev_krb5.yaml + - .github/workflows/build_krb5.yaml jobs: generate_matrix: @@ -25,7 +26,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -48,18 +49,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -69,7 +71,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -92,9 +94,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -103,7 +105,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_nifi.yaml b/.github/workflows/build_nifi.yaml similarity index 79% rename from .github/workflows/dev_nifi.yaml rename to .github/workflows/build_nifi.yaml index 231a42793..f9425ed50 100644 --- a/.github/workflows/dev_nifi.yaml +++ b/.github/workflows/build_nifi.yaml @@ -3,14 +3,15 @@ name: Build NiFi env: PRODUCT_NAME: nifi + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' @@ -20,7 +21,7 @@ on: - java-base/** - java-devel/** - .github/actions/** - - .github/workflows/dev_nifi.yaml + - .github/workflows/build_nifi.yaml jobs: generate_matrix: @@ -29,7 +30,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -52,18 +53,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -73,7 +75,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -96,9 +98,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -107,7 +109,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_omid.yaml b/.github/workflows/build_omid.yaml similarity index 79% rename from .github/workflows/dev_omid.yaml rename to .github/workflows/build_omid.yaml index 7e82ed289..c388ebd21 100644 --- a/.github/workflows/dev_omid.yaml +++ b/.github/workflows/build_omid.yaml @@ -3,14 +3,15 @@ name: Build Omid env: PRODUCT_NAME: omid + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' @@ -20,7 +21,7 @@ on: - java-base/** - java-devel/** - .github/actions/** - - .github/workflows/dev_omid.yaml + - .github/workflows/build_omid.yaml jobs: generate_matrix: @@ -29,7 +30,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -52,18 +53,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -73,7 +75,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -96,9 +98,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -107,7 +109,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_opa.yaml b/.github/workflows/build_opa.yaml similarity index 79% rename from .github/workflows/dev_opa.yaml rename to .github/workflows/build_opa.yaml index 18c7670c5..83e084435 100644 --- a/.github/workflows/dev_opa.yaml +++ b/.github/workflows/build_opa.yaml @@ -3,14 +3,15 @@ name: Build OPA env: PRODUCT_NAME: opa + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' @@ -18,7 +19,7 @@ on: - vector/** - stackable-base/** - .github/actions/** - - .github/workflows/dev_opa.yaml + - .github/workflows/build_opa.yaml jobs: generate_matrix: @@ -27,7 +28,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -50,18 +51,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -71,7 +73,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -94,9 +96,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -105,7 +107,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_spark-k8s.yaml b/.github/workflows/build_spark-k8s.yaml similarity index 79% rename from .github/workflows/dev_spark-k8s.yaml rename to .github/workflows/build_spark-k8s.yaml index 5cf54a8dc..263e6c2ff 100644 --- a/.github/workflows/dev_spark-k8s.yaml +++ b/.github/workflows/build_spark-k8s.yaml @@ -3,14 +3,15 @@ name: Build Spark K8s env: PRODUCT_NAME: spark-k8s + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' @@ -20,7 +21,7 @@ on: - java-base/** - java-devel/** - .github/actions/** - - .github/workflows/dev_spark-k8s.yaml + - .github/workflows/build_spark-k8s.yaml jobs: generate_matrix: @@ -29,7 +30,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -52,18 +53,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -73,7 +75,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -96,9 +98,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -107,7 +109,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_stackable-base.yaml b/.github/workflows/build_stackable-base.yaml similarity index 78% rename from .github/workflows/dev_stackable-base.yaml rename to .github/workflows/build_stackable-base.yaml index ebadc6c08..afb93aa54 100644 --- a/.github/workflows/dev_stackable-base.yaml +++ b/.github/workflows/build_stackable-base.yaml @@ -3,21 +3,22 @@ name: Build Stackable Base env: PRODUCT_NAME: stackable-base + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' - stackable-base/** - tools/** - .github/actions/** - - .github/workflows/dev_stackable-base.yaml + - .github/workflows/build_stackable-base.yaml jobs: generate_matrix: @@ -26,7 +27,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -49,18 +50,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -70,7 +72,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -93,9 +95,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -104,7 +106,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_superset.yaml b/.github/workflows/build_superset.yaml similarity index 79% rename from .github/workflows/dev_superset.yaml rename to .github/workflows/build_superset.yaml index da520449e..e63657c7e 100644 --- a/.github/workflows/dev_superset.yaml +++ b/.github/workflows/build_superset.yaml @@ -3,14 +3,15 @@ name: Build Superset env: PRODUCT_NAME: superset + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' @@ -18,7 +19,7 @@ on: - vector/** - stackable-base/** - .github/actions/** - - .github/workflows/dev_superset.yaml + - .github/workflows/build_superset.yaml jobs: generate_matrix: @@ -27,7 +28,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -50,18 +51,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -71,7 +73,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -94,9 +96,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -105,7 +107,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_testing-tools.yaml b/.github/workflows/build_testing-tools.yaml similarity index 78% rename from .github/workflows/dev_testing-tools.yaml rename to .github/workflows/build_testing-tools.yaml index bead262d5..d2928b75e 100644 --- a/.github/workflows/dev_testing-tools.yaml +++ b/.github/workflows/build_testing-tools.yaml @@ -3,20 +3,21 @@ name: Build Testing Tools env: PRODUCT_NAME: testing-tools + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' - testing-tools/** - .github/actions/** - - .github/workflows/dev_testing-tools.yaml + - .github/workflows/build_testing-tools.yaml jobs: generate_matrix: @@ -25,7 +26,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -48,18 +49,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -69,7 +71,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -92,9 +94,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -103,7 +105,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_tools.yaml b/.github/workflows/build_tools.yaml similarity index 78% rename from .github/workflows/dev_tools.yaml rename to .github/workflows/build_tools.yaml index 70cf9fa32..00cfdac78 100644 --- a/.github/workflows/dev_tools.yaml +++ b/.github/workflows/build_tools.yaml @@ -3,21 +3,22 @@ name: Build Tools env: PRODUCT_NAME: tools + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' - tools/** - stackable-base/** - .github/actions/** - - .github/workflows/dev_tools.yaml + - .github/workflows/build_tools.yaml jobs: generate_matrix: @@ -26,7 +27,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -49,18 +50,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -70,7 +72,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -93,9 +95,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -104,7 +106,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_trino-cli.yaml b/.github/workflows/build_trino-cli.yaml similarity index 79% rename from .github/workflows/dev_trino-cli.yaml rename to .github/workflows/build_trino-cli.yaml index ab091fb48..29267213d 100644 --- a/.github/workflows/dev_trino-cli.yaml +++ b/.github/workflows/build_trino-cli.yaml @@ -3,14 +3,15 @@ name: Build Trino CLI env: PRODUCT_NAME: trino-cli + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' @@ -19,7 +20,7 @@ on: - stackable-base/** - java-base/** - .github/actions/** - - .github/workflows/dev_trino-cli.yaml + - .github/workflows/build_trino-cli.yaml jobs: generate_matrix: @@ -28,7 +29,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -51,18 +52,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -72,7 +74,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -95,9 +97,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -106,7 +108,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_trino.yaml b/.github/workflows/build_trino.yaml similarity index 79% rename from .github/workflows/dev_trino.yaml rename to .github/workflows/build_trino.yaml index 17c39d1b4..bcaa6c4a4 100644 --- a/.github/workflows/dev_trino.yaml +++ b/.github/workflows/build_trino.yaml @@ -3,14 +3,15 @@ name: Build Trino env: PRODUCT_NAME: trino + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' @@ -20,7 +21,7 @@ on: - java-base/** - java-devel/** - .github/actions/** - - .github/workflows/dev_trino.yaml + - .github/workflows/build_trino.yaml jobs: generate_matrix: @@ -29,7 +30,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -52,18 +53,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -73,7 +75,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -96,9 +98,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -107,7 +109,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_vector.yaml b/.github/workflows/build_vector.yaml similarity index 78% rename from .github/workflows/dev_vector.yaml rename to .github/workflows/build_vector.yaml index 6025e64e5..cb18d056f 100644 --- a/.github/workflows/dev_vector.yaml +++ b/.github/workflows/build_vector.yaml @@ -3,20 +3,21 @@ name: Build Vector env: PRODUCT_NAME: vector + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' - vector/** - .github/actions/** - - .github/workflows/dev_vector.yaml + - .github/workflows/build_vector.yaml jobs: generate_matrix: @@ -25,7 +26,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -48,18 +49,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -69,7 +71,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -92,9 +94,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -103,7 +105,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/dev_zookeeper.yaml b/.github/workflows/build_zookeeper.yaml similarity index 79% rename from .github/workflows/dev_zookeeper.yaml rename to .github/workflows/build_zookeeper.yaml index 6552fbb2a..249529575 100644 --- a/.github/workflows/dev_zookeeper.yaml +++ b/.github/workflows/build_zookeeper.yaml @@ -3,14 +3,15 @@ name: Build ZooKeeper env: PRODUCT_NAME: zookeeper + SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} on: workflow_dispatch: schedule: - cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_* push: - branches: - - main + branches: [main] + tags: ['*'] paths: # To check dependencies, run this ( you will need to consider transitive dependencies) # bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' @@ -20,7 +21,7 @@ on: - java-base/** - java-devel/** - .github/actions/** - - .github/workflows/dev_zookeeper.yaml + - .github/workflows/build_zookeeper.yaml jobs: generate_matrix: @@ -29,7 +30,7 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - id: shard - uses: stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} outputs: @@ -52,18 +53,19 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Build Product Image id: build - uses: stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: product-name: ${{ env.PRODUCT_NAME }} product-version: ${{ matrix.versions }} build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }} + sdp-version: ${{ env.SDP_VERSION }} - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -73,7 +75,7 @@ jobs: source-image-uri: localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -96,9 +98,9 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Free Disk Space - uses: stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -107,7 +109,7 @@ jobs: image-index-manifest-tag: ${{ matrix.versions }}-stackable0.0.0-dev - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/mirror.yaml b/.github/workflows/mirror.yaml index 9eebaee28..f2c34709e 100644 --- a/.github/workflows/mirror.yaml +++ b/.github/workflows/mirror.yaml @@ -50,7 +50,7 @@ jobs: echo "IMAGE_REPOSITORY=$(.scripts/get_repo_name.sh)" | tee -a "$GITHUB_ENV" - name: Publish Container Image on docker.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -60,7 +60,7 @@ jobs: source-image-uri: ${{ format('{0}:{1}', inputs.image-repository-uri, inputs.image-index-manifest-tag) }} - name: Publish Container Image on oci.stackable.tech - uses: stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build @@ -85,7 +85,7 @@ jobs: echo "IMAGE_REPOSITORY=$(.scripts/get_repo_name.sh)" | tee -a "$GITHUB_ENV" - name: Publish and Sign Image Index Manifest to docker.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: docker.stackable.tech image-registry-username: github @@ -94,7 +94,7 @@ jobs: image-index-manifest-tag: ${{ inputs.image-index-manifest-tag }} - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + uses: stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: image-registry-uri: oci.stackable.tech image-registry-username: robot$sdp+github-action-build diff --git a/.github/workflows/pr_pre-commit.yaml b/.github/workflows/pr_pre-commit.yaml index 85b672b8e..d7096fb28 100644 --- a/.github/workflows/pr_pre-commit.yaml +++ b/.github/workflows/pr_pre-commit.yaml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: fetch-depth: 0 - - uses: stackabletech/actions/run-pre-commit@fe921a914283975f3be1f5f47348467a94276d41 # 0.1.0 + - uses: stackabletech/actions/run-pre-commit@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0 with: python-version: ${{ env.PYTHON_VERSION }} hadolint: ${{ env.HADOLINT_VERSION }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5567d23d..850b0d7cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,9 @@ --- name: Publish release images on: - push: - tags: - # Tag names are used passed as 'image_version' to image_tools.bake and - # are validated there. - - '*' + # The release workflow is now taken care of in the build_* workflows. + # This workflow can still be manually run on a tag if needed during the release. + workflow_dispatch: jobs: build_and_push: diff --git a/.scripts/update_readme_badges.sh b/.scripts/update_readme_badges.sh index b2a53ced4..8df0f40b0 100755 --- a/.scripts/update_readme_badges.sh +++ b/.scripts/update_readme_badges.sh @@ -4,14 +4,11 @@ set -euo pipefail +# START: Configurables AUTO_GENERATED_COMMENT="autogenerated by $0" GITHUB_ACTION_URL_PREFIX="https://github.com/stackabletech/docker-images/actions/workflows" COLS=4 - -# https://github.com/stackabletech/docker-images/actions/workflows/dev_airflow.yaml/badge.svg -# https://github.com/stackabletech/docker-images/actions/workflows/dev_airflow.yaml - -# [![Build Airflow](https://github.com/stackabletech/docker-images/actions/workflows/dev_airflow.yaml/badge.svg)](https://github.com/stackabletech/docker-images/actions/workflows/dev_airflow.yaml) +# END: Configurables LINK_SHORTCUTS=() CURRENT_COLUMN=-1 @@ -33,21 +30,21 @@ for _ in $(seq 0 $((COLS - 1))); do done echo "|" >> "$BADGES_TMP" -for DEV_WORKFLOW_FILE in .github/workflows/dev_*.yaml; do +for BUILD_WORKFLOW_FILE in .github/workflows/build_*.yaml; do CURRENT_COLUMN=$(( (CURRENT_COLUMN + 1) % COLS )) - DEV_WORKFLOW_NAME=$(yq -r '.name' "$DEV_WORKFLOW_FILE") - DEV_WORKFLOW_BASENAME=$(basename "$DEV_WORKFLOW_FILE") - DEV_WORKFLOW_WORKFLOW_URL="${GITHUB_ACTION_URL_PREFIX}/${DEV_WORKFLOW_BASENAME}" - DEV_WORKFLOW_BADGE_URL="${DEV_WORKFLOW_WORKFLOW_URL}/badge.svg" + BUILD_WORKFLOW_NAME=$(yq -r '.name' "$BUILD_WORKFLOW_FILE") + BUILD_WORKFLOW_BASENAME=$(basename "$BUILD_WORKFLOW_FILE") + BUILD_WORKFLOW_URL="${GITHUB_ACTION_URL_PREFIX}/${BUILD_WORKFLOW_BASENAME}" + BUILD_WORKFLOW_BADGE_URL="${BUILD_WORKFLOW_URL}/badge.svg" # Append the image and link shortcuts to be printed at the end - LINK_SHORTCUTS+=("[${DEV_WORKFLOW_NAME}]: ${DEV_WORKFLOW_BADGE_URL}") - LINK_SHORTCUTS+=("[${DEV_WORKFLOW_BASENAME}]: ${DEV_WORKFLOW_WORKFLOW_URL}") + LINK_SHORTCUTS+=("[${BUILD_WORKFLOW_NAME}]: ${BUILD_WORKFLOW_BADGE_URL}") + LINK_SHORTCUTS+=("[${BUILD_WORKFLOW_BASENAME}]: ${BUILD_WORKFLOW_URL}") # Print the cells which contain the shortcuts to the image and link: - # eg: [![Build Airflow]][dev_airflow.yaml] - echo -n "| [![${DEV_WORKFLOW_NAME}]][${DEV_WORKFLOW_BASENAME}] " >> "$BADGES_TMP" + # eg: [![Build Airflow]][build_airflow.yaml] + echo -n "| [![${BUILD_WORKFLOW_NAME}]][${BUILD_WORKFLOW_BASENAME}] " >> "$BADGES_TMP" # Use this for debugging the grid (comment out the echo above): # echo -n "| x " @@ -60,8 +57,8 @@ done echo -n "" >> "$BADGES_TMP" # Print the image and link shortcuts. Eg: -# [Build Airflow]: https://github.com/stackabletech/docker-images/actions/workflows/dev_airflow.yaml/badge.svg -# [dev_airflow.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_airflow.yaml +# [Build Airflow]: https://github.com/stackabletech/docker-images/actions/workflows/build_airflow.yaml/badge.svg +# [build_airflow.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_airflow.yaml echo "" >> "$LINKS_TMP" printf '%s\n' "${LINK_SHORTCUTS[@]}" >> "$LINKS_TMP" echo -n "" >> "$LINKS_TMP" diff --git a/CHANGELOG.md b/CHANGELOG.md index b8a18d78d..c257db5ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,8 +34,9 @@ All notable changes to this project will be documented in this file. - java: migrate to temurin jdk/jre ([#894]). - tools: bump kubectl to `1.31.1` and jq to `1.7.1` ([#896]). - Make username, user id, group id configurable, use numeric ids everywhere, change group of all files to 0 ([#849], [#890], [#897]). -- ci: Bump `stackabletech/actions` to 0.1.0 ([#901], [#903], [#907], [#910]). +- ci: Bump `stackabletech/actions` to 0.2.0 ([#901], [#903], [#907], [#910], [#913]). - ubi-rust-builder: Bump Rust toolchain to 1.81.0 ([#902]). +- ci: Handle release builds in the same build workflows ([#913]). ### Removed @@ -97,6 +98,7 @@ All notable changes to this project will be documented in this file. [#907]: https://github.com/stackabletech/docker-images/pull/907 [#910]: https://github.com/stackabletech/docker-images/pull/910 [#912]: https://github.com/stackabletech/docker-images/pull/912 +[#913]: https://github.com/stackabletech/docker-images/pull/913 ## [24.7.0] - 2024-07-24 diff --git a/README.md b/README.md index 4c296b125..b56837435 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,12 @@ This repository contains Dockerfiles and scripts to build base images for use wi | | | | | | -: | -: | -: | -: | -| [![Build Airflow]][dev_airflow.yaml] | [![Build Druid]][dev_druid.yaml] | [![Build Hadoop]][dev_hadoop.yaml] | [![Build HBase]][dev_hbase.yaml] | -| [![Build Hello-World]][dev_hello-world.yaml] | [![Build Hive]][dev_hive.yaml] | [![Build Java Base]][dev_java-base.yaml] | [![Build Java Development]][dev_java-devel.yaml] | -| [![Build Kafka Testing Tools]][dev_kafka-testing-tools.yaml] | [![Build Kafka]][dev_kafka.yaml] | [![Build kcat]][dev_kcat.yaml] | [![Build Krb5]][dev_krb5.yaml] | -| [![Build NiFi]][dev_nifi.yaml] | [![Build Omid]][dev_omid.yaml] | [![Build OPA]][dev_opa.yaml] | [![Build Spark K8s]][dev_spark-k8s.yaml] | -| [![Build Stackable Base]][dev_stackable-base.yaml] | [![Build Superset]][dev_superset.yaml] | [![Build Testing Tools]][dev_testing-tools.yaml] | [![Build Tools]][dev_tools.yaml] | -| [![Build Trino CLI]][dev_trino-cli.yaml] | [![Build Trino]][dev_trino.yaml] | [![Build Vector]][dev_vector.yaml] | [![Build ZooKeeper]][dev_zookeeper.yaml] | +| [![Build Airflow]][build_airflow.yaml] | [![Build Druid]][build_druid.yaml] | [![Build Hadoop]][build_hadoop.yaml] | [![Build HBase]][build_hbase.yaml] | +| [![Build Hello-World]][build_hello-world.yaml] | [![Build Hive]][build_hive.yaml] | [![Build Java Base]][build_java-base.yaml] | [![Build Java Development]][build_java-devel.yaml] | +| [![Build Kafka Testing Tools]][build_kafka-testing-tools.yaml] | [![Build Kafka]][build_kafka.yaml] | [![Build kcat]][build_kcat.yaml] | [![Build Krb5]][build_krb5.yaml] | +| [![Build NiFi]][build_nifi.yaml] | [![Build Omid]][build_omid.yaml] | [![Build OPA]][build_opa.yaml] | [![Build Spark K8s]][build_spark-k8s.yaml] | +| [![Build Stackable Base]][build_stackable-base.yaml] | [![Build Superset]][build_superset.yaml] | [![Build Testing Tools]][build_testing-tools.yaml] | [![Build Tools]][build_tools.yaml] | +| [![Build Trino CLI]][build_trino-cli.yaml] | [![Build Trino]][build_trino.yaml] | [![Build Vector]][build_vector.yaml] | [![Build ZooKeeper]][build_zookeeper.yaml] | ## Prerequisites @@ -96,52 +96,52 @@ ENTRYPOINT ["/stackable-zookeeper-operator"] ``` -[Build Airflow]: https://github.com/stackabletech/docker-images/actions/workflows/dev_airflow.yaml/badge.svg -[dev_airflow.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_airflow.yaml -[Build Druid]: https://github.com/stackabletech/docker-images/actions/workflows/dev_druid.yaml/badge.svg -[dev_druid.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_druid.yaml -[Build Hadoop]: https://github.com/stackabletech/docker-images/actions/workflows/dev_hadoop.yaml/badge.svg -[dev_hadoop.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_hadoop.yaml -[Build HBase]: https://github.com/stackabletech/docker-images/actions/workflows/dev_hbase.yaml/badge.svg -[dev_hbase.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_hbase.yaml -[Build Hello-World]: https://github.com/stackabletech/docker-images/actions/workflows/dev_hello-world.yaml/badge.svg -[dev_hello-world.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_hello-world.yaml -[Build Hive]: https://github.com/stackabletech/docker-images/actions/workflows/dev_hive.yaml/badge.svg -[dev_hive.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_hive.yaml -[Build Java Base]: https://github.com/stackabletech/docker-images/actions/workflows/dev_java-base.yaml/badge.svg -[dev_java-base.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_java-base.yaml -[Build Java Development]: https://github.com/stackabletech/docker-images/actions/workflows/dev_java-devel.yaml/badge.svg -[dev_java-devel.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_java-devel.yaml -[Build Kafka Testing Tools]: https://github.com/stackabletech/docker-images/actions/workflows/dev_kafka-testing-tools.yaml/badge.svg -[dev_kafka-testing-tools.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_kafka-testing-tools.yaml -[Build Kafka]: https://github.com/stackabletech/docker-images/actions/workflows/dev_kafka.yaml/badge.svg -[dev_kafka.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_kafka.yaml -[Build kcat]: https://github.com/stackabletech/docker-images/actions/workflows/dev_kcat.yaml/badge.svg -[dev_kcat.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_kcat.yaml -[Build Krb5]: https://github.com/stackabletech/docker-images/actions/workflows/dev_krb5.yaml/badge.svg -[dev_krb5.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_krb5.yaml -[Build NiFi]: https://github.com/stackabletech/docker-images/actions/workflows/dev_nifi.yaml/badge.svg -[dev_nifi.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_nifi.yaml -[Build Omid]: https://github.com/stackabletech/docker-images/actions/workflows/dev_omid.yaml/badge.svg -[dev_omid.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_omid.yaml -[Build OPA]: https://github.com/stackabletech/docker-images/actions/workflows/dev_opa.yaml/badge.svg -[dev_opa.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_opa.yaml -[Build Spark K8s]: https://github.com/stackabletech/docker-images/actions/workflows/dev_spark-k8s.yaml/badge.svg -[dev_spark-k8s.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_spark-k8s.yaml -[Build Stackable Base]: https://github.com/stackabletech/docker-images/actions/workflows/dev_stackable-base.yaml/badge.svg -[dev_stackable-base.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_stackable-base.yaml -[Build Superset]: https://github.com/stackabletech/docker-images/actions/workflows/dev_superset.yaml/badge.svg -[dev_superset.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_superset.yaml -[Build Testing Tools]: https://github.com/stackabletech/docker-images/actions/workflows/dev_testing-tools.yaml/badge.svg -[dev_testing-tools.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_testing-tools.yaml -[Build Tools]: https://github.com/stackabletech/docker-images/actions/workflows/dev_tools.yaml/badge.svg -[dev_tools.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_tools.yaml -[Build Trino CLI]: https://github.com/stackabletech/docker-images/actions/workflows/dev_trino-cli.yaml/badge.svg -[dev_trino-cli.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_trino-cli.yaml -[Build Trino]: https://github.com/stackabletech/docker-images/actions/workflows/dev_trino.yaml/badge.svg -[dev_trino.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_trino.yaml -[Build Vector]: https://github.com/stackabletech/docker-images/actions/workflows/dev_vector.yaml/badge.svg -[dev_vector.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_vector.yaml -[Build ZooKeeper]: https://github.com/stackabletech/docker-images/actions/workflows/dev_zookeeper.yaml/badge.svg -[dev_zookeeper.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/dev_zookeeper.yaml +[Build Airflow]: https://github.com/stackabletech/docker-images/actions/workflows/build_airflow.yaml/badge.svg +[build_airflow.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_airflow.yaml +[Build Druid]: https://github.com/stackabletech/docker-images/actions/workflows/build_druid.yaml/badge.svg +[build_druid.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_druid.yaml +[Build Hadoop]: https://github.com/stackabletech/docker-images/actions/workflows/build_hadoop.yaml/badge.svg +[build_hadoop.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_hadoop.yaml +[Build HBase]: https://github.com/stackabletech/docker-images/actions/workflows/build_hbase.yaml/badge.svg +[build_hbase.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_hbase.yaml +[Build Hello-World]: https://github.com/stackabletech/docker-images/actions/workflows/build_hello-world.yaml/badge.svg +[build_hello-world.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_hello-world.yaml +[Build Hive]: https://github.com/stackabletech/docker-images/actions/workflows/build_hive.yaml/badge.svg +[build_hive.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_hive.yaml +[Build Java Base]: https://github.com/stackabletech/docker-images/actions/workflows/build_java-base.yaml/badge.svg +[build_java-base.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_java-base.yaml +[Build Java Development]: https://github.com/stackabletech/docker-images/actions/workflows/build_java-devel.yaml/badge.svg +[build_java-devel.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_java-devel.yaml +[Build Kafka Testing Tools]: https://github.com/stackabletech/docker-images/actions/workflows/build_kafka-testing-tools.yaml/badge.svg +[build_kafka-testing-tools.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_kafka-testing-tools.yaml +[Build Kafka]: https://github.com/stackabletech/docker-images/actions/workflows/build_kafka.yaml/badge.svg +[build_kafka.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_kafka.yaml +[Build kcat]: https://github.com/stackabletech/docker-images/actions/workflows/build_kcat.yaml/badge.svg +[build_kcat.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_kcat.yaml +[Build Krb5]: https://github.com/stackabletech/docker-images/actions/workflows/build_krb5.yaml/badge.svg +[build_krb5.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_krb5.yaml +[Build NiFi]: https://github.com/stackabletech/docker-images/actions/workflows/build_nifi.yaml/badge.svg +[build_nifi.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_nifi.yaml +[Build Omid]: https://github.com/stackabletech/docker-images/actions/workflows/build_omid.yaml/badge.svg +[build_omid.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_omid.yaml +[Build OPA]: https://github.com/stackabletech/docker-images/actions/workflows/build_opa.yaml/badge.svg +[build_opa.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_opa.yaml +[Build Spark K8s]: https://github.com/stackabletech/docker-images/actions/workflows/build_spark-k8s.yaml/badge.svg +[build_spark-k8s.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_spark-k8s.yaml +[Build Stackable Base]: https://github.com/stackabletech/docker-images/actions/workflows/build_stackable-base.yaml/badge.svg +[build_stackable-base.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_stackable-base.yaml +[Build Superset]: https://github.com/stackabletech/docker-images/actions/workflows/build_superset.yaml/badge.svg +[build_superset.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_superset.yaml +[Build Testing Tools]: https://github.com/stackabletech/docker-images/actions/workflows/build_testing-tools.yaml/badge.svg +[build_testing-tools.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_testing-tools.yaml +[Build Tools]: https://github.com/stackabletech/docker-images/actions/workflows/build_tools.yaml/badge.svg +[build_tools.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_tools.yaml +[Build Trino CLI]: https://github.com/stackabletech/docker-images/actions/workflows/build_trino-cli.yaml/badge.svg +[build_trino-cli.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_trino-cli.yaml +[Build Trino]: https://github.com/stackabletech/docker-images/actions/workflows/build_trino.yaml/badge.svg +[build_trino.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_trino.yaml +[Build Vector]: https://github.com/stackabletech/docker-images/actions/workflows/build_vector.yaml/badge.svg +[build_vector.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_vector.yaml +[Build ZooKeeper]: https://github.com/stackabletech/docker-images/actions/workflows/build_zookeeper.yaml/badge.svg +[build_zookeeper.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_zookeeper.yaml