fix: jenkins

This commit is contained in:
Araozu 2024-10-27 18:03:35 -05:00
parent 385fccda4f
commit 53c76e8294

13
Jenkinsfile vendored
View File

@ -1,17 +1,6 @@
pipeline { pipeline {
agent any agent any
stages { stages {
stage('Generate templ files') {
agent {
docker {
image 'ghcr.io/a-h/templ:latest'
reuseNode true
}
}
steps {
sh 'templ generate'
}
}
stage('Build go binary') { stage('Build go binary') {
agent { agent {
docker { docker {
@ -20,7 +9,9 @@ pipeline {
} }
} }
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'
} }
} }