mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Merge pull request #106 from paperless-ngx/revert-79-ci-build-container-on-prs
Revert "CI: Build and tag container on PRs"
This commit is contained in:
		
							
								
								
									
										7
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							@@ -278,9 +278,9 @@ jobs:
 | 
				
			|||||||
          asset_name: paperless-ng-${{ steps.get_version.outputs.version }}.tar.xz
 | 
					          asset_name: paperless-ng-${{ steps.get_version.outputs.version }}.tar.xz
 | 
				
			||||||
          asset_content_type: application/x-xz
 | 
					          asset_content_type: application/x-xz
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # build and push image to ghcr.
 | 
					  # build and push image to docker hub.
 | 
				
			||||||
  build-docker-image:
 | 
					  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
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    needs: [frontend, tests, whitespace, codestyle]
 | 
					    needs: [frontend, tests, whitespace, codestyle]
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
@@ -295,9 +295,6 @@ jobs:
 | 
				
			|||||||
          elif [[ $GITHUB_REF == refs/heads/* ]]; then
 | 
					          elif [[ $GITHUB_REF == refs/heads/* ]]; then
 | 
				
			||||||
            TAGS=${IMAGE_NAME}:${GITHUB_REF#refs/heads/}
 | 
					            TAGS=${IMAGE_NAME}:${GITHUB_REF#refs/heads/}
 | 
				
			||||||
            INSPECT_TAG=${TAGS}
 | 
					            INSPECT_TAG=${TAGS}
 | 
				
			||||||
          elif [[ $GITHUB_REF == refs/pull/* ]]; then
 | 
					 | 
				
			||||||
            TAGS=${IMAGE_NAME}:pr-${{ github.event.number }}
 | 
					 | 
				
			||||||
            INSPECT_TAG=${TAGS}
 | 
					 | 
				
			||||||
          else
 | 
					          else
 | 
				
			||||||
            exit 1
 | 
					            exit 1
 | 
				
			||||||
          fi
 | 
					          fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user