Files
homepage/Jenkinsfile
T
Georgios Jason Efstathiou 4892a958fc
Gitea/homepage/pipeline/head There was a failure building this commit
actually do that maybe?
2024-12-22 20:22:15 +01:00

33 lines
506 B
Groovy

pipeline {
agent any
tools {
dockerTool
}
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")
}
}
}
}
}
}