Add Jenkinsfile
This commit is contained in:
		
							
								
								
									
										20
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | |||||||
|  | #!/usr/bin/groovy | ||||||
|  | image = "mongo-logger" | ||||||
|  | label = "daily" | ||||||
|  | build = null | ||||||
|  |  | ||||||
|  | node { | ||||||
|  |     stage("Checkout") { | ||||||
|  |         checkout scm | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     stage("Build") { | ||||||
|  |         build = docker.build("kspaceee/${image}", "--no-cache ./") | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     stage("Push") { | ||||||
|  |         docker.withRegistry("https://registry.hub.docker.com", "dockerhub-kspace") { | ||||||
|  |             build.push(label) | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user