From f8991ca8e09ebf7ccbf52ff7aba2600c176147d5 Mon Sep 17 00:00:00 2001 From: Marc Schaefer Date: Wed, 2 Mar 2022 21:00:43 +0100 Subject: [PATCH] Switch ci.yml from ng to ngx --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7165a27c0..c5bc1937b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -224,7 +224,7 @@ jobs: name: Get version id: get_version run: | - echo ::set-output name=version::${GITHUB_REF#refs/tags/ng-} + echo ::set-output name=version::${GITHUB_REF#refs/tags/ngx-} - name: Create release id: create_release @@ -232,7 +232,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 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 }} draft: false prerelease: false @@ -252,7 +252,7 @@ jobs: # build and push image to docker hub. 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 needs: [tests, codeformatting, codestyle] steps: @@ -261,8 +261,8 @@ jobs: id: prepare run: | IMAGE_NAME=ghcr.io/${{ github.repository }} - if [[ $GITHUB_REF == refs/tags/ng-* ]]; then - TAGS=${IMAGE_NAME}:${GITHUB_REF#refs/tags/ng-},${IMAGE_NAME}:latest + if [[ $GITHUB_REF == refs/tags/ngx-* ]]; then + TAGS=${IMAGE_NAME}:${GITHUB_REF#refs/tags/ngx-},${IMAGE_NAME}:latest INSPECT_TAG=${IMAGE_NAME}:latest elif [[ $GITHUB_REF == refs/heads/* ]]; then TAGS=${IMAGE_NAME}:${GITHUB_REF#refs/heads/}