mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	enable multiarch builds, release only with ng- tags
This commit is contained in:
		
							
								
								
									
										9
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -146,6 +146,7 @@ jobs: | |||||||
|   publish-release: |   publish-release: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     needs: build-release |     needs: build-release | ||||||
|  |     if: contains(github.ref, 'refs/tags/ng-') | ||||||
|     steps: |     steps: | ||||||
|       - |       - | ||||||
|         name: Download Release Artifact |         name: Download Release Artifact | ||||||
| @@ -156,7 +157,7 @@ jobs: | |||||||
|       - |       - | ||||||
|         id: get_branch_name |         id: get_branch_name | ||||||
|         run: | |         run: | | ||||||
|           branch_name=$(echo ${{ github.ref }} | cut -d/ -f3) |           branch_name=$(echo ${{ github.ref }} | cut -d- -f2) | ||||||
|           echo "::set-output name=branch_name::$branch_name" |           echo "::set-output name=branch_name::$branch_name" | ||||||
|       - |       - | ||||||
|         name: Create Release |         name: Create Release | ||||||
| @@ -167,8 +168,10 @@ jobs: | |||||||
|         with: |         with: | ||||||
|           tag_name: ${{ steps.get_branch_name.outputs.branch_name }} |           tag_name: ${{ steps.get_branch_name.outputs.branch_name }} | ||||||
|           release_name: Paperless-ng ${{ steps.get_branch_name.outputs.branch_name }} |           release_name: Paperless-ng ${{ steps.get_branch_name.outputs.branch_name }} | ||||||
|           draft: true |           draft: false | ||||||
|           prerelease: true |           prerelease: true | ||||||
|  |           body: | | ||||||
|  |             TODO: Insert changelog here (it's also in the documentation) | ||||||
|       - |       - | ||||||
|         name: Upload Release Archive |         name: Upload Release Archive | ||||||
|         id: upload-release-asset |         id: upload-release-asset | ||||||
| @@ -233,7 +236,7 @@ jobs: | |||||||
|         with: |         with: | ||||||
|           context: . |           context: . | ||||||
|           file: ./Dockerfile |           file: ./Dockerfile | ||||||
|           platforms: linux/amd64 # ,linux/arm/v7,linux/arm64 |           platforms: linux/amd64,linux/arm/v7,linux/arm64 | ||||||
|           push: true |           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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler