Skip to content

Commit 1d52569

Browse files
committed
fix(ci): rc handling
1 parent ef1d18d commit 1d52569

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/_buildx.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,27 @@ jobs:
2323
mv binaries/shiori_linux_amd64_v1 binaries/shiori_linux_amd64
2424
gzip -d -S binaries/.gz__ -r .
2525
chmod 755 binaries/shiori_linux_*/shiori
26+
2627
- name: Prepare master push tags
2728
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
2829
run: |
2930
REPO=ghcr.io/${{ github.repository }}
3031
TAG=$(git describe --tags)
31-
if [ -z "$(git tag --points-at HEAD)" ] || [ "$TAG" == *"rc"* ]
32+
if [ -z "$(git tag --points-at HEAD)" ] || [[ "$TAG" == *"rc"* ]]
3233
then
3334
TAG2="dev"
3435
else
3536
TAG2="latest"
3637
fi
3738
echo "tag_flags=--tag $REPO:$TAG --tag $REPO:$TAG2" >> $GITHUB_ENV
3839
40+
- name: Prepare version push tags
41+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
42+
run: |
43+
REPO=ghcr.io/${{ github.repository }}
44+
TAG=$(git describe --tags)
45+
echo "tag_flags=--tag $REPO:$TAG --tag $REPO:dev" >> $GITHUB_ENV
46+
3947
- name: Prepare pull request tags
4048
if: github.event_name == 'pull_request'
4149
run: |

0 commit comments

Comments
 (0)