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 {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
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') {
|
stage('Build go binary') {
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
@ -15,6 +10,8 @@ pipeline {
|
|||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'go mod tidy'
|
sh 'go mod tidy'
|
||||||
|
sh 'go install github.com/a-h/templ/cmd/templ@latest'
|
||||||
|
sh 'templ generate'
|
||||||
sh 'go build main.go'
|
sh 'go build main.go'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ templ SkeletonTempl() {
|
|||||||
templ MusicPlayer() {
|
templ MusicPlayer() {
|
||||||
<div
|
<div
|
||||||
id="music-player"
|
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"
|
x-data="player"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
Loading…
Reference in New Issue
Block a user