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: |         env: | ||||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
|         with: |         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 }} |           release_name: Paperless-ng ${{ steps.get_version.outputs.version }} | ||||||
|           draft: false |           draft: false | ||||||
|           prerelease: true |           prerelease: true | ||||||
| @@ -225,7 +225,7 @@ 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/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 |     runs-on: ubuntu-latest | ||||||
|     needs: [frontend, tests] |     needs: [frontend, tests] | ||||||
|     steps: |     steps: | ||||||
| @@ -236,8 +236,9 @@ jobs: | |||||||
|           VERSION=edge |           VERSION=edge | ||||||
|           if [[ $GITHUB_REF == refs/tags/ng-* ]]; then |           if [[ $GITHUB_REF == refs/tags/ng-* ]]; then | ||||||
|             VERSION=${GITHUB_REF#refs/tags/ng-} |             VERSION=${GITHUB_REF#refs/tags/ng-} | ||||||
|           fi |           elif [[ $GITHUB_REF == refs/heads/master ]]; then | ||||||
|           if [[ $GITHUB_REF == refs/heads/* ]]; then |             VERSION=latest | ||||||
|  |           elif [[ $GITHUB_REF == refs/heads/* ]]; then | ||||||
|             VERSION=${GITHUB_REF#refs/heads/} |             VERSION=${GITHUB_REF#refs/heads/} | ||||||
|           fi |           fi | ||||||
|           echo ::set-output name=version::${VERSION} |           echo ::set-output name=version::${VERSION} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler