Files
jenkins-inbound-agent-with-…/Jenkinsfile
T
Georgios Jason Efstathiou c91dfb87c9
Gitea/jenkins-inbound-agent-with-docker/pipeline/head Something is wrong with the build of this commit
init
2025-01-17 20:31:36 +01:00

29 lines
501 B
Groovy

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