card-jong-be/Jenkinsfile
2024-05-08 08:57:36 -05:00

23 lines
434 B
Groovy

pipeline {
agent any
stages {
stage('Build binary') {
agent {
docker {
image "golang:1.22-bookworm"
reuseNode true
}
}
steps {
sh 'go build'
}
}
stage("Deploy") {
steps {
sh "docker compose up --build -d"
}
}
}
}