Skip to content

Commit a3f7587

Browse files
authored
feat(build-product-image): Add an input for sdp-version (#15)
1 parent fe921a9 commit a3f7587

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

build-product-image/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ localhost/kafka:3.4.1-stackable0.0.0-dev-amd64
4747
- `build-cache-username` (required) <!-- TODO: make the cache optional -->
4848
- `build-cache-password` (required) <!-- TODO: make the cache optional -->
4949
- `bake-config-file` (defaults to `./conf.py`)
50+
- `sdp-version` (defaults to: `0.0.0-dev`)
5051

5152
### Outputs
5253

build-product-image/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ inputs:
2020
bake-config-file:
2121
description: Path to the bake config file, defaults to `./conf.py`
2222
default: ./conf.py
23+
sdp-version:
24+
description: |
25+
Stackable Data Platform version (eg: `24.7.0`)
26+
default: 0.0.0-dev
2327
outputs:
2428
image-manifest-tag:
2529
description: |
@@ -57,6 +61,7 @@ runs:
5761
BAKE_PRODUCT_VERSION: ${{ inputs.product-version }}
5862
BAKE_CONFIG_FILE: ${{ inputs.bake-config-file }}
5963
IMAGE_REPOSITORY: ${{ inputs.product-name }}
64+
SDP_VERSION: ${{ inputs.sdp-version }}
6065
shell: bash
6166
run: |
6267
set -euo pipefail
@@ -65,7 +70,7 @@ runs:
6570
echo "::group::bake"
6671
bake \
6772
--product "$IMAGE_REPOSITORY=$BAKE_PRODUCT_VERSION" \
68-
--image-version "0.0.0-dev-${IMAGE_ARCH}" \
73+
--image-version "${SDP_VERSION}-${IMAGE_ARCH}" \
6974
--architecture "linux/${IMAGE_ARCH}" \
7075
--export-tags-file bake-target-tags \
7176
--configuration "$BAKE_CONFIG_FILE" \

0 commit comments

Comments
 (0)