mirror of
				https://github.com/Frooodle/Stirling-PDF.git
				synced 2025-10-25 11:17:28 +02:00 
			
		
		
		
	ci: add helm package/push to Jenkinsfile
Signed-off-by: Daniel Richter <danielrichter@posteo.de>
This commit is contained in:
		
							parent
							
								
									9d052b310f
								
							
						
					
					
						commit
						d3fe467f6f
					
				
							
								
								
									
										20
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							| @ -22,12 +22,24 @@ pipeline { | ||||
|                     def appVersion = sh(returnStdout: true, script: './gradlew printVersion -q').trim() | ||||
|                     def image = "frooodle/s-pdf:$appVersion" | ||||
|                     withCredentials([string(credentialsId: 'docker_hub_access_token', variable: 'DOCKER_HUB_ACCESS_TOKEN')]) { | ||||
| 				sh "docker login --username frooodle --password $DOCKER_HUB_ACCESS_TOKEN" | ||||
| 				        sh "docker login --username frooodle --password $DOCKER_HUB_ACCESS_TOKEN" | ||||
|                         sh "docker push $image" | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|     	 | ||||
| 	} | ||||
|    } | ||||
|         } | ||||
|         stage('Helm Push') { | ||||
|             steps { | ||||
|                 script { | ||||
|                     //TODO: Read chartVersion from Chart.yaml | ||||
|                     def chartVersion = '1.0.0' | ||||
|                     withCredentials([string(credentialsId: 'docker_hub_access_token', variable: 'DOCKER_HUB_ACCESS_TOKEN')]) { | ||||
| 				        sh "docker login --username frooodle --password $DOCKER_HUB_ACCESS_TOKEN" | ||||
| 				        sh "helm package chart/stirling-pdf" | ||||
|                         sh "helm push stirling-pdf-chart-1.0.0.tgz oci://registry-1.docker.io/frooodle" | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
| @ -9,7 +9,7 @@ keywords: | ||||
| maintainers: | ||||
| - name: Frooodle | ||||
|   url: https://github.com/Frooodle/Stirling-PDF | ||||
| name: stirling-pdf | ||||
| name: stirling-pdf-chart | ||||
| sources: | ||||
| - https://github.com/Frooodle/Stirling-PDF | ||||
| version: 1.0.0 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user