mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	fix up CI/CD: build docker image on tags, correct docker image version, correct release tag
This commit is contained in:
		
							
								
								
									
										9
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -205,7 +205,7 @@ jobs: | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|         with: | ||||
|           tag_name: ${{ steps.get_version.outputs.version }} | ||||
|           tag_name: ng-${{ steps.get_version.outputs.version }} | ||||
|           release_name: Paperless-ng ${{ steps.get_version.outputs.version }} | ||||
|           draft: false | ||||
|           prerelease: true | ||||
| @@ -225,7 +225,7 @@ jobs: | ||||
|  | ||||
|   # build and push image to docker hub. | ||||
|   build-docker-image: | ||||
|     if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || github.ref == 'refs/tags/ng-*') | ||||
|     if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/ng-')) | ||||
|     runs-on: ubuntu-latest | ||||
|     needs: [frontend, tests] | ||||
|     steps: | ||||
| @@ -236,8 +236,9 @@ jobs: | ||||
|           VERSION=edge | ||||
|           if [[ $GITHUB_REF == refs/tags/ng-* ]]; then | ||||
|             VERSION=${GITHUB_REF#refs/tags/ng-} | ||||
|           fi | ||||
|           if [[ $GITHUB_REF == refs/heads/* ]]; then | ||||
|           elif [[ $GITHUB_REF == refs/heads/master ]]; then | ||||
|             VERSION=latest | ||||
|           elif [[ $GITHUB_REF == refs/heads/* ]]; then | ||||
|             VERSION=${GITHUB_REF#refs/heads/} | ||||
|           fi | ||||
|           echo ::set-output name=version::${VERSION} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler