mirror of
				https://github.com/Frooodle/Stirling-PDF.git
				synced 2025-10-25 11:17:28 +02:00 
			
		
		
		
	Update push-docker.yml (#38)
This commit is contained in:
		
							parent
							
								
									57b12ffcc3
								
							
						
					
					
						commit
						53057f4e18
					
				
							
								
								
									
										25
									
								
								.github/workflows/push-docker.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/push-docker.yml
									
									
									
									
										vendored
									
									
								
							| @ -4,6 +4,7 @@ on: | ||||
|   push: | ||||
|     branches:  | ||||
|       - master | ||||
|       - testGit | ||||
|       - main | ||||
| jobs: | ||||
|   push: | ||||
| @ -37,20 +38,36 @@ jobs: | ||||
|       with: | ||||
|         username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||||
|         password: ${{ secrets.DOCKER_HUB_API }}  | ||||
|          | ||||
|     | ||||
|     - name: Check if tag exists | ||||
|       id: checkIdExists | ||||
|       continue-on-error: true | ||||
|       run: | | ||||
|         response=$(curl -s https://hub.docker.com/v2/repositories/frooodle/s-pdf/tags/?name=${{ steps.versionNumber.outputs.versionNumber }}) | ||||
|         result=$(echo $response | jq ".results") | ||||
|         if [ "$result" == "[]" ]; then | ||||
|           echo "Tag ${{ steps.versionNumber.outputs.versionNumber }} doesnt exist. Continuing with build and push." | ||||
|         else | ||||
|           echo "Tag ${{ steps.versionNumber.outputs.versionNumber }} already exists. Skipping build and push." | ||||
|           exit 1; | ||||
|         fi | ||||
| 
 | ||||
|     | ||||
|     | ||||
|     - name: Setup buildx | ||||
|       if: steps.checkIdExists.outcome != 'failure' | ||||
|       run: | | ||||
|         docker buildx create --name mybuilder | ||||
|         docker buildx use mybuilder | ||||
|          | ||||
|     - name: Build and push versioned amd64 and v8 | ||||
|       if: github.ref == 'refs/heads/main'  | ||||
|     - name: Build and push versioned amd64 and v8  | ||||
|       if: github.ref == 'refs/heads/main' && steps.checkIdExists.outcome != 'failure' | ||||
|       run: |  | ||||
|         docker buildx build --platform="linux/amd64,linux/arm64/v8" --push --tag "frooodle/s-pdf:${{ steps.versionNumber.outputs.versionNumber }}" . | ||||
| 
 | ||||
|     | ||||
|     - name: Build and push latest amd64 and v8 | ||||
|       if: github.ref == 'refs/heads/master'  | ||||
|       if: github.ref == 'refs/heads/master' && steps.checkIdExists.outcome != 'failure' | ||||
|       run: |  | ||||
|         docker buildx build --platform="linux/amd64,linux/arm64/v8" --push --tag "frooodle/s-pdf:latest" . | ||||
|          | ||||
|  | ||||
| @ -5,7 +5,7 @@ plugins { | ||||
| } | ||||
| 
 | ||||
| group = 'stirling.software' | ||||
| version = '0.3.1' | ||||
| version = '0.3.2' | ||||
| sourceCompatibility = '17' | ||||
| 
 | ||||
| repositories { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user