From 4c02069e99af5685f5ffa8ffc24c46756c524a25 Mon Sep 17 00:00:00 2001 From: Araozu Date: Sun, 27 Oct 2024 17:58:26 -0500 Subject: [PATCH] fix: jenkins again --- Jenkinsfile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 {