Skip to content

Commit 03e2cb8

Browse files
committed
ci: attempt to fix platform tag to only the proper platform itself
1 parent 5e7a655 commit 03e2cb8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ jobs:
5757
- run: |
5858
ref="${GITHUB_REF##*/}"
5959
img="tsuru/${{ matrix.platform }}"
60-
tags="${img}:${ref}"
60+
tags=""
6161
if [[ ${ref} == "master" ]] || [[ ${ref} == "main" ]]; then
6262
tags="${img}:latest"
63-
elif [[ ${ref} =~ ${{ matrix.platform }}-([0-9.]+) ]]; then
63+
elif [[ ${ref} =~ ^${{ matrix.platform }}-([0-9.]+)$ ]]; then
6464
tags=${img}:${BASH_REMATCH[1]},${img}:latest
6565
fi
6666
echo "::set-output name=tag::${tags}"

0 commit comments

Comments
 (0)