fix: golang version in jenkins
This commit is contained in:
parent
57e80b022e
commit
12174438eb
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -9,14 +9,12 @@ pipeline {
|
|||||||
stage('Build go binary') {
|
stage('Build go binary') {
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image 'golang:1.22-alpine3.20'
|
image 'golang:1.23-alpine3.20'
|
||||||
reuseNode true
|
reuseNode true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'go install github.com/a-h/templ/cmd/templ@latest'
|
|
||||||
sh 'go mod tidy'
|
sh 'go mod tidy'
|
||||||
sh 'templ generate'
|
|
||||||
sh 'go build main.go'
|
sh 'go build main.go'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user