From 5446818fcaef5286dbe1e7886127aba2b356d466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20N=C3=BCtzi?= Date: Sat, 6 Jul 2024 21:56:33 +0200 Subject: [PATCH] fix: build image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gabriel Nützi --- .github/workflows/normal.yaml | 3 +++ tools/build-image.sh | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/normal.yaml b/.github/workflows/normal.yaml index db8a12c..c82ba45 100644 --- a/.github/workflows/normal.yaml +++ b/.github/workflows/normal.yaml @@ -153,6 +153,9 @@ jobs: if: ${{ inputs.is_release }} + env: + CI_IS_RELEASE: true + steps: - name: Checkout uses: actions/checkout@v4 diff --git a/tools/build-image.sh b/tools/build-image.sh index b3c6c7a..05fbf22 100755 --- a/tools/build-image.sh +++ b/tools/build-image.sh @@ -33,6 +33,8 @@ function main() { # Write the temporary version file (gets restored...) dasel put -r toml -f "$VERSION_FILE" -t string -v "$version" .package.version else + print_info "Building image for release." + # When CI and in Release, the requested version must match. version=$(dasel get -f "$VERSION_FILE" .package.version -w yaml)