Files
homepage/Jenkinsfile
T
Georgios Jason Efstathiou bd2f85a09f
Gitea/homepage/pipeline/head There was a failure building this commit
try this
2024-12-22 21:00:20 +01:00

33 lines
527 B
Groovy

pipeline {
agent {
docker {
image 'bitnami/kaniko'
}
}
environment {
REGISTRY = "docker-registry.service.consul"
IMAGE_NAME = "efstajas/homepage"
}
stages {
stage('Docker Build') {
steps {
script {
dockerImage = docker.build("$IMAGE_NAME")
}
}
}
stage('Docker Publish') {
steps {
script {
docker.withRegistry("http://$REGISTRY:4124") {
dockerImage.push("latest")
}
}
}
}
}
}