mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-19 10:19:27 -05:00
Switch ci.yml from ng to ngx
This commit is contained in:
parent
59975087c5
commit
f8991ca8e0
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -224,7 +224,7 @@ jobs:
|
|||||||
name: Get version
|
name: Get version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: |
|
run: |
|
||||||
echo ::set-output name=version::${GITHUB_REF#refs/tags/ng-}
|
echo ::set-output name=version::${GITHUB_REF#refs/tags/ngx-}
|
||||||
-
|
-
|
||||||
name: Create release
|
name: Create release
|
||||||
id: create_release
|
id: create_release
|
||||||
@ -232,7 +232,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ng-${{ steps.get_version.outputs.version }}
|
tag_name: ngx-${{ steps.get_version.outputs.version }}
|
||||||
release_name: Paperless-ngx ${{ steps.get_version.outputs.version }}
|
release_name: Paperless-ngx ${{ steps.get_version.outputs.version }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
@ -252,7 +252,7 @@ jobs:
|
|||||||
|
|
||||||
# build and push image to docker hub.
|
# build and push image to docker hub.
|
||||||
build-docker-image:
|
build-docker-image:
|
||||||
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/feature-') || github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/ng-'))
|
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/feature-') || github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/ngx-'))
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [tests, codeformatting, codestyle]
|
needs: [tests, codeformatting, codestyle]
|
||||||
steps:
|
steps:
|
||||||
@ -261,8 +261,8 @@ jobs:
|
|||||||
id: prepare
|
id: prepare
|
||||||
run: |
|
run: |
|
||||||
IMAGE_NAME=ghcr.io/${{ github.repository }}
|
IMAGE_NAME=ghcr.io/${{ github.repository }}
|
||||||
if [[ $GITHUB_REF == refs/tags/ng-* ]]; then
|
if [[ $GITHUB_REF == refs/tags/ngx-* ]]; then
|
||||||
TAGS=${IMAGE_NAME}:${GITHUB_REF#refs/tags/ng-},${IMAGE_NAME}:latest
|
TAGS=${IMAGE_NAME}:${GITHUB_REF#refs/tags/ngx-},${IMAGE_NAME}:latest
|
||||||
INSPECT_TAG=${IMAGE_NAME}:latest
|
INSPECT_TAG=${IMAGE_NAME}:latest
|
||||||
elif [[ $GITHUB_REF == refs/heads/* ]]; then
|
elif [[ $GITHUB_REF == refs/heads/* ]]; then
|
||||||
TAGS=${IMAGE_NAME}:${GITHUB_REF#refs/heads/}
|
TAGS=${IMAGE_NAME}:${GITHUB_REF#refs/heads/}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user