Files
homepage/Jenkinsfile
T
Georgios Jason Efstathiou b7b69d0882
Gitea/homepage/pipeline/head There was a failure building this commit
fix
2024-12-22 20:13:05 +01:00

29 lines
486 B
Groovy

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