fix: jenkins again
This commit is contained in:
parent
152e682f0c
commit
4c02069e99
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -1,7 +1,7 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Build go binary') {
|
||||
stage('Generate templ files') {
|
||||
agent {
|
||||
docker {
|
||||
image 'ghcr.io/a-h/templ:latest'
|
||||
@ -14,6 +14,18 @@ pipeline {
|
||||
sh 'go build main.go'
|
||||
}
|
||||
}
|
||||
stage('Build go binary') {
|
||||
agent {
|
||||
docker {
|
||||
image 'golang:latest'
|
||||
reuseNode true
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'go mod tidy'
|
||||
sh 'go build main.go'
|
||||
}
|
||||
}
|
||||
stage('Build static assets') {
|
||||
agent {
|
||||
docker {
|
||||
|
Loading…
Reference in New Issue
Block a user