Skip to content

Commit

Permalink
feat(build-product-image): Add an input for sdp-version (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickLarsenNZ authored Nov 4, 2024
1 parent fe921a9 commit a3f7587
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions build-product-image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ localhost/kafka:3.4.1-stackable0.0.0-dev-amd64
- `build-cache-username` (required) <!-- TODO: make the cache optional -->
- `build-cache-password` (required) <!-- TODO: make the cache optional -->
- `bake-config-file` (defaults to `./conf.py`)
- `sdp-version` (defaults to: `0.0.0-dev`)

### Outputs

Expand Down
7 changes: 6 additions & 1 deletion build-product-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ inputs:
bake-config-file:
description: Path to the bake config file, defaults to `./conf.py`
default: ./conf.py
sdp-version:
description: |
Stackable Data Platform version (eg: `24.7.0`)
default: 0.0.0-dev
outputs:
image-manifest-tag:
description: |
Expand Down Expand Up @@ -57,6 +61,7 @@ runs:
BAKE_PRODUCT_VERSION: ${{ inputs.product-version }}
BAKE_CONFIG_FILE: ${{ inputs.bake-config-file }}
IMAGE_REPOSITORY: ${{ inputs.product-name }}
SDP_VERSION: ${{ inputs.sdp-version }}
shell: bash
run: |
set -euo pipefail
Expand All @@ -65,7 +70,7 @@ runs:
echo "::group::bake"
bake \
--product "$IMAGE_REPOSITORY=$BAKE_PRODUCT_VERSION" \
--image-version "0.0.0-dev-${IMAGE_ARCH}" \
--image-version "${SDP_VERSION}-${IMAGE_ARCH}" \
--architecture "linux/${IMAGE_ARCH}" \
--export-tags-file bake-target-tags \
--configuration "$BAKE_CONFIG_FILE" \
Expand Down

0 comments on commit a3f7587

Please sign in to comment.