Files
homepage/Jenkinsfile
T
Georgios Jason Efstathiou f653df267a
Gitea/homepage/pipeline/head There was a failure building this commit
build for amd64 and arm64
2024-12-23 12:41:10 +01:00

29 lines
514 B
Groovy

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