mirror of
https://github.com/go-shiori/shiori.git
synced 2025-01-19 06:20:08 +08:00
fix(ci): use correct tag names on version bump (#864)
This commit is contained in:
parent
9c7483fd09
commit
47e7259714
1 changed files with 8 additions and 8 deletions
16
.github/workflows/_buildx.yml
vendored
16
.github/workflows/_buildx.yml
vendored
|
@ -29,20 +29,20 @@ jobs:
|
|||
run: |
|
||||
REPO=ghcr.io/${{ github.repository }}
|
||||
TAG=$(git describe --tags)
|
||||
if [ -z "$(git tag --points-at HEAD)" ] || [[ "$TAG" == *"rc"* ]]
|
||||
then
|
||||
TAG2="dev"
|
||||
else
|
||||
TAG2="latest"
|
||||
fi
|
||||
echo "tag_flags=--tag $REPO:$TAG --tag $REPO:$TAG2" >> $GITHUB_ENV
|
||||
echo "tag_flags=--tag $REPO:$TAG --tag $REPO:latest" >> $GITHUB_ENV
|
||||
|
||||
- name: Prepare version push tags
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
||||
run: |
|
||||
REPO=ghcr.io/${{ github.repository }}
|
||||
TAG=$(git describe --tags)
|
||||
echo "tag_flags=--tag $REPO:$TAG --tag $REPO:dev" >> $GITHUB_ENV
|
||||
if [[ "$TAG" == *"rc"* ]]
|
||||
then
|
||||
TAG2="dev"
|
||||
else
|
||||
TAG2="latest"
|
||||
fi
|
||||
echo "tag_flags=--tag $REPO:$TAG --tag $REPO:$TAG2" >> $GITHUB_ENV
|
||||
|
||||
- name: Prepare pull request tags
|
||||
if: github.event_name == 'pull_request'
|
||||
|
|
Loading…
Reference in a new issue