init
Gitea/jenkins-inbound-agent-with-docker/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
Georgios Jason Efstathiou
2025-01-17 20:31:36 +01:00
commit c91dfb87c9
2 changed files with 54 additions and 0 deletions
Vendored
+28
View File
@@ -0,0 +1,28 @@
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")
}
}
}
}
}
}