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() {