diff --git a/Jenkinsfile b/Jenkinsfile index 978fe65..3456574 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 {