From 39dcbaa67258b6363f897dd558e81cda34366157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Fri, 24 Sep 2021 17:58:50 +0200 Subject: [PATCH] workflows: Fix tag attribution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While releasing kata-containers 2.3.0-alpha1 we've hit some issues as the tags attribution is done incorrectly. We want an array of tags to iterate over, but the currently code is just lost is the parenthesis. This issue was introduced in a156288c1f8251bdd3231ec765d324f95a3da33e. Fixes: #2725 Signed-off-by: Fabiano FidĂȘncio --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 418e74a9d8..5bedf2ecb1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -100,8 +100,8 @@ jobs: run: | # tag the container image we created and push to DockerHub tag=$(echo $GITHUB_REF | cut -d/ -f3-) - tags=$(tag) - tags+=$([[ "$tag" =~ "alpha"|"rc" ]] && echo "latest" || echo "stable") + tags=($tag) + tags+=($([[ "$tag" =~ "alpha"|"rc" ]] && echo "latest" || echo "stable")) for tag in ${tags[@]}; do \ docker tag katadocker/kata-deploy-ci:${{steps.build-and-push-kata-deploy-ci.outputs.PKG_SHA}} katadocker/kata-deploy:${tag} && \ docker tag quay.io/kata-containers/kata-deploy-ci:${{steps.build-and-push-kata-deploy-ci.outputs.PKG_SHA}} quay.io/kata-containers/kata-deploy:${tag} && \