23 lines
434 B
Groovy
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"
|
|
}
|
|
}
|
|
}
|
|
}
|