A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
try separate build / push
jonaswinkler6fa0d00b8ff5
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 3fe9a6ad3..78dd931d0 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -84,9 +84,7 @@ jobs:# build and push image to docker hub.build-docker-image:- if: github.event_name == 'push' && (github.ref == 'refs/heads/travis-multiarch-builds' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || github.ref == 'refs/tags/ng-*')runs-on: ubuntu-latest- needs: testssteps:-name: Prepare@@ -117,6 +115,36 @@ jobs:key: ${{ runner.os }}-buildx-${{ github.sha }}restore-keys: |${{ runner.os }}-buildx-+ -+ name: Build image+ uses: docker/build-push-action@v2+ with:+ platforms: linux/amd64,linux/arm/v7+ tags: jonaswinkler/paperless-ng:${{ steps.prepare.outputs.version }}+ cache-from: type=local,src=/tmp/.buildx-cache+ cache-to: type=local,dest=/tmp/.buildx-cache+ -+ name: Inspect image+ run: |+ docker buildx imagetools inspect jonaswinkler/paperless-ng:${{ steps.prepare.outputs.version }}++ push-docker-image:+ runs-on: ubuntu-latest+ if: github.event_name == 'push' && (github.ref == 'refs/heads/travis-multiarch-builds' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || github.ref == 'refs/tags/ng-*')+ needs: [tests, build-docker-image]++ steps:+ -+ name: Set up Docker Buildx+ uses: docker/setup-buildx-action@v1+ -+ name: Cache Docker layers+ uses: pat-s/[email protected]+ with:+ path: /tmp/.buildx-cache+ key: ${{ runner.os }}-buildx-${{ github.sha }}+ restore-keys: |+ ${{ runner.os }}-buildx--name: Login to DockerHubuses: docker/login-action@v1@@ -124,17 +152,10 @@ jobs:username: ${{ secrets.DOCKER_USERNAME }}password: ${{ secrets.DOCKER_PASSWORD }}-- name: Build and push+ name: Push imageuses: docker/build-push-action@v2with:- context: .- file: ./Dockerfileplatforms: linux/amd64,linux/arm/v7- push: truetags: jonaswinkler/paperless-ng:${{ steps.prepare.outputs.version }}cache-from: type=local,src=/tmp/.buildx-cache- cache-to: type=local,dest=/tmp/.buildx-cache- -- name: Inspect image- run: |- docker buildx imagetools inspect jonaswinkler/paperless-ng:${{ steps.prepare.outputs.version }}+ push: true