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