pflaenz.li/Jenkinsfile
Jannis Portmann 072616803b Add steps
2023-04-07 11:02:28 +02:00

29 lines
676 B
Groovy

pipeline {
agent any
stages {
stage('Pull git') {
steps {
checkout scm
}
}
stage('Build Docker Image') {
steps {
script {
def dockerImage = docker.build('pflaenzli', '-f Dockerfile . --tag pflaenzli:${env.BUILD_NUMBER}')
}
}
}
stage('Push Docker Image') {
steps {
script {
docker.withRegistry('https://git.thisfro.ch', 'jenkins-ci') {
dockerImage.push()
}
}
}
}
}
}