fix: just install templ every time with go
This commit is contained in:
parent
b839199ea4
commit
041aa9e71b
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -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'
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user