mirror of
https://github.com/go-shiori/shiori.git
synced 2024-09-20 15:06:14 +08:00
fix(ci): rc handling
This commit is contained in:
parent
ef1d18d81f
commit
1d52569731
10
.github/workflows/_buildx.yml
vendored
10
.github/workflows/_buildx.yml
vendored
|
@ -23,12 +23,13 @@ jobs:
|
||||||
mv binaries/shiori_linux_amd64_v1 binaries/shiori_linux_amd64
|
mv binaries/shiori_linux_amd64_v1 binaries/shiori_linux_amd64
|
||||||
gzip -d -S binaries/.gz__ -r .
|
gzip -d -S binaries/.gz__ -r .
|
||||||
chmod 755 binaries/shiori_linux_*/shiori
|
chmod 755 binaries/shiori_linux_*/shiori
|
||||||
|
|
||||||
- name: Prepare master push tags
|
- name: Prepare master push tags
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
run: |
|
run: |
|
||||||
REPO=ghcr.io/${{ github.repository }}
|
REPO=ghcr.io/${{ github.repository }}
|
||||||
TAG=$(git describe --tags)
|
TAG=$(git describe --tags)
|
||||||
if [ -z "$(git tag --points-at HEAD)" ] || [ "$TAG" == *"rc"* ]
|
if [ -z "$(git tag --points-at HEAD)" ] || [[ "$TAG" == *"rc"* ]]
|
||||||
then
|
then
|
||||||
TAG2="dev"
|
TAG2="dev"
|
||||||
else
|
else
|
||||||
|
@ -36,6 +37,13 @@ jobs:
|
||||||
fi
|
fi
|
||||||
echo "tag_flags=--tag $REPO:$TAG --tag $REPO:$TAG2" >> $GITHUB_ENV
|
echo "tag_flags=--tag $REPO:$TAG --tag $REPO:$TAG2" >> $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
|
||||||
|
|
||||||
- name: Prepare pull request tags
|
- name: Prepare pull request tags
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue