]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Revert "CI: Build and tag container on PRs" 106/head
authorQuinn Casey <quinn@quinncasey.com>
Sat, 19 Feb 2022 20:44:53 +0000 (12:44 -0800)
committerGitHub <noreply@github.com>
Sat, 19 Feb 2022 20:44:53 +0000 (12:44 -0800)
.github/workflows/ci.yml

index edf9e827f8aec5458b70a2bed68d33daca3aeaff..71642c91e1ecbdadac49d9d20504fedeac5ddb37 100644 (file)
@@ -278,9 +278,9 @@ jobs:
           asset_name: paperless-ng-${{ steps.get_version.outputs.version }}.tar.xz
           asset_content_type: application/x-xz
 
-  # build and push image to ghcr.
+  # build and push image to docker hub.
   build-docker-image:
-    if: startsWith(github.ref, 'refs/heads/feature-') || github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/ng-') || startsWith(github.ref, 'refs/pull/')
+    if: github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/feature-') || github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/ng-'))
     runs-on: ubuntu-latest
     needs: [frontend, tests, whitespace, codestyle]
     steps:
@@ -295,9 +295,6 @@ jobs:
           elif [[ $GITHUB_REF == refs/heads/* ]]; then
             TAGS=${IMAGE_NAME}:${GITHUB_REF#refs/heads/}
             INSPECT_TAG=${TAGS}
-          elif [[ $GITHUB_REF == refs/pull/* ]]; then
-            TAGS=${IMAGE_NAME}:pr-${{ github.event.number }}
-            INSPECT_TAG=${TAGS}
           else
             exit 1
           fi