mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Fixes beta or rcs from updating the latest Docker tag
This commit is contained in:
parent
b9a2652013
commit
2ef2a561ef
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@ -3,9 +3,10 @@ name: ci
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
|
# https://semver.org/#spec-item-2
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+'
|
# https://semver.org/#spec-item-9
|
||||||
- 'beta-[0-9]+.[0-9]+.[0-9]+-rc[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+-beta.rc[0-9]+'
|
||||||
branches-ignore:
|
branches-ignore:
|
||||||
- 'translations**'
|
- 'translations**'
|
||||||
pull_request:
|
pull_request:
|
||||||
@ -54,7 +55,7 @@ jobs:
|
|||||||
|
|
||||||
prepare-docker-build:
|
prepare-docker-build:
|
||||||
name: Prepare Docker Pipeline Data
|
name: Prepare Docker Pipeline Data
|
||||||
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/feature-') || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/beta' || startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/beta-'))
|
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/feature-') || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/beta' || contains(github.ref, 'beta.rc') || startsWith(github.ref, 'refs/tags/v'))
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs:
|
needs:
|
||||||
- documentation
|
- documentation
|
||||||
@ -263,8 +264,6 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
# Tag branches with branch name
|
# Tag branches with branch name
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
# Tag tags with tag name
|
|
||||||
type=ref,event=tag
|
|
||||||
# Process semver tags
|
# Process semver tags
|
||||||
# For a tag x.y.z or vX.Y.Z, output an x.y.z and x.y image tag
|
# For a tag x.y.z or vX.Y.Z, output an x.y.z and x.y image tag
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
@ -389,7 +388,7 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs:
|
needs:
|
||||||
- build-release
|
- build-release
|
||||||
if: github.ref_type == 'tag' && (startsWith(github.ref_name, 'v') || startsWith(github.ref_name, 'beta-'))
|
if: github.ref_type == 'tag' && (startsWith(github.ref_name, 'v') || contains(github.ref_name, '-beta.rc'))
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Download release artifact
|
name: Download release artifact
|
||||||
@ -401,12 +400,11 @@ jobs:
|
|||||||
name: Get version
|
name: Get version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: |
|
run: |
|
||||||
if [[ $GITHUB_REF == refs/tags/v* ]]; then
|
echo ::set-output name=version::${{ github.ref_name }}
|
||||||
echo ::set-output name=version::${{ github.ref_name }}
|
if [[ ${{ contains(github.ref_name, '-beta.rc') }} == 'true' ]]; then
|
||||||
echo ::set-output name=prerelease::false
|
|
||||||
elif [[ $GITHUB_REF == refs/tags/beta-* ]]; then
|
|
||||||
echo ::set-output name=version::${{ github.ref_name }}
|
|
||||||
echo ::set-output name=prerelease::true
|
echo ::set-output name=prerelease::true
|
||||||
|
else
|
||||||
|
echo ::set-output name=prerelease::false
|
||||||
fi
|
fi
|
||||||
-
|
-
|
||||||
name: Create Release and Changelog
|
name: Create Release and Changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user