mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-02 00:02:01 +00:00
workflows: Fix tag attribution
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 ina156288c1f
. Fixes: #2725 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> (cherry picked from commit39dcbaa672
)
This commit is contained in:
parent
ebc23df752
commit
8d98e01414
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
@ -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} && \
|
||||
|
Loading…
Reference in New Issue
Block a user