From 53c76e829445ea2f8d5fe3ec83bb743b778eff42 Mon Sep 17 00:00:00 2001 From: Araozu Date: Sun, 27 Oct 2024 18:03:35 -0500 Subject: [PATCH] fix: jenkins --- Jenkinsfile | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3c6650d..1a60c1d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,17 +1,6 @@ pipeline { agent any stages { - stage('Generate templ files') { - agent { - docker { - image 'ghcr.io/a-h/templ:latest' - reuseNode true - } - } - steps { - sh 'templ generate' - } - } stage('Build go binary') { agent { docker { @@ -20,7 +9,9 @@ pipeline { } } steps { + sh 'go install github.com/a-h/templ/cmd/templ@latest' sh 'go mod tidy' + sh 'templ generate' sh 'go build main.go' } }