We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e7a655 commit 03e2cb8Copy full SHA for 03e2cb8
1 file changed
.github/workflows/ci.yaml
@@ -57,10 +57,10 @@ jobs:
57
- run: |
58
ref="${GITHUB_REF##*/}"
59
img="tsuru/${{ matrix.platform }}"
60
- tags="${img}:${ref}"
+ tags=""
61
if [[ ${ref} == "master" ]] || [[ ${ref} == "main" ]]; then
62
tags="${img}:latest"
63
- elif [[ ${ref} =~ ${{ matrix.platform }}-([0-9.]+) ]]; then
+ elif [[ ${ref} =~ ^${{ matrix.platform }}-([0-9.]+)$ ]]; then
64
tags=${img}:${BASH_REMATCH[1]},${img}:latest
65
fi
66
echo "::set-output name=tag::${tags}"
0 commit comments