fix: just install templ every time with go

This commit is contained in:
Araozu 2024-10-27 18:38:48 -05:00
parent b839199ea4
commit 041aa9e71b
2 changed files with 3 additions and 6 deletions

7
Jenkinsfile vendored
View File

@ -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'
}
}

View File

@ -30,7 +30,7 @@ templ SkeletonTempl() {
templ MusicPlayer() {
<div
id="music-player"
class="fixed bottom-0 left-0 w-screen border-t bg-c-bg text-c-on-bg border-sky-500 grid grid-cols-[3rem_auto_3rem_3rem] gap-2 p-1 bg-white"
class="fixed bottom-0 left-0 w-screen border-t bg-c-bg text-c-on-bg border-sky-500 grid grid-cols-[3rem_auto_3rem_3rem] gap-2 p-1"
x-data="player"
>
<div