@@ -17,6 +17,9 @@ inputs:
17
17
build-cache-password :
18
18
description : Build cache password
19
19
required : true
20
+ bake-config-file :
21
+ description : Path to the bake config file, defaults to `./conf.py`
22
+ default : ./conf.py
20
23
outputs :
21
24
image-manifest-tag :
22
25
description : |
53
56
sudo apt update
54
57
sudo apt install -y python3
55
58
56
- - name : Building ${{ inputs.product-name }}
57
- shell : bash
58
- run : echo ${{ inputs.product-name }}
59
-
60
59
- name : Install image-tools-stackabletech
61
60
shell : bash
62
61
run : pip install image-tools-stackabletech==${{ inputs.image-tools-version }}
@@ -69,21 +68,25 @@ runs:
69
68
username : ${{ inputs.build-cache-username }}
70
69
password : ${{ inputs.build-cache-password }}
71
70
72
- - name : Build image using bake
71
+ - name : Building ${{ inputs.product-name }} Container Image using bake
73
72
env :
74
- IMAGE_REPOSITORY : ${{ inputs.product-name }}
75
73
BAKE_PRODUCT_VERSION : ${{ inputs.product-version }}
74
+ BAKE_CONFIG_FILE : ${{ inputs.bake-config-file }}
75
+ IMAGE_REPOSITORY : ${{ inputs.product-name }}
76
76
shell : bash
77
77
run : |
78
78
set -euo pipefail
79
79
IMAGE_ARCH="$(uname -m | sed -e 's#x86_64#amd64#' | sed -e 's#aarch64#arm64#')"
80
80
81
+ echo "::group::bake"
81
82
bake \
82
- --product $IMAGE_REPOSITORY=$BAKE_PRODUCT_VERSION \
83
- --image-version "0.0.0-dev-${IMAGE_ARCH}" \
84
- --architecture "linux/${IMAGE_ARCH}" \
85
- --export-tags-file bake-target-tags \
86
- --cache
83
+ --product "$IMAGE_REPOSITORY=$BAKE_PRODUCT_VERSION" \
84
+ --image-version "0.0.0-dev-${IMAGE_ARCH}" \
85
+ --architecture "linux/${IMAGE_ARCH}" \
86
+ --export-tags-file bake-target-tags \
87
+ --configuration "$BAKE_CONFIG_FILE" \
88
+ --cache
89
+ echo "::endgroup::""
87
90
88
91
- name : Re-tag Image (Temporary)
89
92
shell : bash
0 commit comments