mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	
							
								
								
									
										45
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										45
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -84,7 +84,9 @@ 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' && (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 |     runs-on: ubuntu-latest | ||||||
|  |     needs: tests | ||||||
|     steps: |     steps: | ||||||
|       - |       - | ||||||
|         name: Prepare |         name: Prepare | ||||||
| @@ -116,10 +118,19 @@ jobs: | |||||||
|           restore-keys: | |           restore-keys: | | ||||||
|             ${{ runner.os }}-buildx- |             ${{ runner.os }}-buildx- | ||||||
|       - |       - | ||||||
|         name: Build image |         name: Login to DockerHub | ||||||
|  |         uses: docker/login-action@v1 | ||||||
|  |         with: | ||||||
|  |           username: ${{ secrets.DOCKER_USERNAME }} | ||||||
|  |           password: ${{ secrets.DOCKER_PASSWORD }} | ||||||
|  |       - | ||||||
|  |         name: Build and push | ||||||
|         uses: docker/build-push-action@v2 |         uses: docker/build-push-action@v2 | ||||||
|         with: |         with: | ||||||
|  |           context: . | ||||||
|  |           file: ./Dockerfile | ||||||
|           platforms: linux/amd64,linux/arm/v7 |           platforms: linux/amd64,linux/arm/v7 | ||||||
|  |           push: true | ||||||
|           tags: jonaswinkler/paperless-ng:${{ steps.prepare.outputs.version }} |           tags: jonaswinkler/paperless-ng:${{ steps.prepare.outputs.version }} | ||||||
|           cache-from: type=local,src=/tmp/.buildx-cache |           cache-from: type=local,src=/tmp/.buildx-cache | ||||||
|           cache-to: type=local,dest=/tmp/.buildx-cache |           cache-to: type=local,dest=/tmp/.buildx-cache | ||||||
| @@ -127,35 +138,3 @@ jobs: | |||||||
|         name: Inspect image |         name: Inspect image | ||||||
|         run: | |         run: | | ||||||
|           docker buildx imagetools inspect jonaswinkler/paperless-ng:${{ steps.prepare.outputs.version }} |           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/always-upload-cache@v2.1.3 |  | ||||||
|         with: |  | ||||||
|           path: /tmp/.buildx-cache |  | ||||||
|           key: ${{ runner.os }}-buildx-${{ github.sha }} |  | ||||||
|           restore-keys: | |  | ||||||
|             ${{ runner.os }}-buildx- |  | ||||||
|       - |  | ||||||
|         name: Login to DockerHub |  | ||||||
|         uses: docker/login-action@v1 |  | ||||||
|         with: |  | ||||||
|           username: ${{ secrets.DOCKER_USERNAME }} |  | ||||||
|           password: ${{ secrets.DOCKER_PASSWORD }} |  | ||||||
|       - |  | ||||||
|         name: Push 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 |  | ||||||
|           push: true |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler