]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Adds workflow level concurrency group with cancelling of in progress jobs to the CI 751/head
authorTrenton Holmes <holmes.trenton@gmail.com>
Sun, 17 Apr 2022 22:25:19 +0000 (15:25 -0700)
committerTrenton Holmes <holmes.trenton@gmail.com>
Sun, 17 Apr 2022 22:29:50 +0000 (15:29 -0700)
.github/workflows/ci.yml

index cb8af9876bdbca7f4a160662ad59b53839ae84d4..0daf605c494e7e5bc7a41bb9f4dabda4fb1520e4 100644 (file)
@@ -185,6 +185,9 @@ 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' || github.ref == 'refs/heads/beta' || startsWith(github.ref, 'refs/tags/ngx-') || startsWith(github.ref, 'refs/tags/beta-'))
+    concurrency:
+      group: ${{ github.workflow }}-build-docker-image-${{ github.ref }}
+      cancel-in-progress: true
     runs-on: ubuntu-20.04
     needs: [tests-backend, tests-frontend]
     steps: