add Jenkinsfile
This commit is contained in:
		
							parent
							
								
									12ccddddb3
								
							
						
					
					
						commit
						455fc1143b
					
				
					 1 changed files with 27 additions and 0 deletions
				
			
		
							
								
								
									
										27
									
								
								Jenkinsfile
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								Jenkinsfile
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,27 @@
 | 
				
			||||||
 | 
					pipeline {
 | 
				
			||||||
 | 
					    agent any
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					    stages {
 | 
				
			||||||
 | 
					        stage('Clone') { 
 | 
				
			||||||
 | 
					            steps {
 | 
				
			||||||
 | 
					                git branch: 'ender3s1', url: 'https://git.siwatsystem.com/satitchula-printfarm/octoprint-klipper-docker'
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        } 
 | 
				
			||||||
 | 
					        stage('Build Docker Image') {
 | 
				
			||||||
 | 
					            steps {
 | 
				
			||||||
 | 
					                script {
 | 
				
			||||||
 | 
					                    image = docker.build("siwatinc/octoprint-klipper:ender3s1")
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        stage('Publish Docker Image') {
 | 
				
			||||||
 | 
					            steps {
 | 
				
			||||||
 | 
					                script {
 | 
				
			||||||
 | 
					                    docker.withRegistry("https://ghcr.io/v2") {
 | 
				
			||||||
 | 
					                        image.push()
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue