card-jong-be/Jenkinsfile

23 lines
434 B
Plaintext
Raw Normal View History

2024-05-08 13:57:36 +00:00
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"
}
}
}
}