From 9d9487b17f9818f10c518cab8cba4f43042e68f5 Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Thu, 16 May 2024 14:30:32 +0100 Subject: [PATCH] ci: cache: Fix unbound variable Now we have the workflow updated and can test the changes in caching we've hit an error: ``` line 1180: artefact_tag: unbound variable ``` so we need to fix that up. Sorry for missing this before. Signed-off-by: stevenhorsman --- tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh b/tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh index 20e69d2c19..ffde7f6fee 100755 --- a/tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh +++ b/tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh @@ -1177,7 +1177,7 @@ handle_build() { esac tags=(latest-${TARGET_BRANCH}-$(uname -m)) - if [ -n "${artefact_tag}" ]; then + if [ -n "${artefact_tag:-}" ]; then tags+=("${artefact_tag}") fi if [ "${RELEASE}" == "yes" ]; then