fix: jenkins again

This commit is contained in:
Araozu 2024-10-27 17:58:26 -05:00
parent 152e682f0c
commit 4c02069e99

14
Jenkinsfile vendored
View File

@ -1,7 +1,7 @@
pipeline { pipeline {
agent any agent any
stages { stages {
stage('Build go binary') { stage('Generate templ files') {
agent { agent {
docker { docker {
image 'ghcr.io/a-h/templ:latest' image 'ghcr.io/a-h/templ:latest'
@ -14,6 +14,18 @@ pipeline {
sh 'go build main.go' 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') { stage('Build static assets') {
agent { agent {
docker { docker {