init
Gitea/jenkins-inbound-agent-with-docker/pipeline/head Something is wrong with the build of this commit
Gitea/jenkins-inbound-agent-with-docker/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
Vendored
+28
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user