pflaenz.li/Jenkinsfile
2023-04-07 11:08:58 +02:00

31 lines
684 B
Groovy

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