Files
homepage/Jenkinsfile
T
Georgios Jason Efstathiou c7afc41a1c
Gitea/homepage/pipeline/head There was a failure building this commit
fix build, maybe
2024-12-22 19:58:51 +01:00

29 lines
472 B
Groovy

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