From 041aa9e71b131f09adbf03ac686613c9265a0934 Mon Sep 17 00:00:00 2001 From: Araozu Date: Sun, 27 Oct 2024 18:38:48 -0500 Subject: [PATCH] fix: just install templ every time with go --- Jenkinsfile | 7 ++----- src/utils/utils.templ | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2e09f71..d8191b4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,6 @@ pipeline { agent any stages { - stage('Build templ files') { - steps { - sh 'docker run -v `pwd`:/app -w=/app ghcr.io/a-h/templ:latest generate' - } - } stage('Build go binary') { agent { docker { @@ -15,6 +10,8 @@ pipeline { } steps { sh 'go mod tidy' + sh 'go install github.com/a-h/templ/cmd/templ@latest' + sh 'templ generate' sh 'go build main.go' } } diff --git a/src/utils/utils.templ b/src/utils/utils.templ index 25db4ec..54459a0 100644 --- a/src/utils/utils.templ +++ b/src/utils/utils.templ @@ -30,7 +30,7 @@ templ SkeletonTempl() { templ MusicPlayer() {