fix: add static files to jenkins pipeline
This commit is contained in:
parent
70e30f7ac0
commit
fede2c3f8e
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -1,7 +1,7 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Install') {
|
||||
stage('Build go binary') {
|
||||
agent {
|
||||
docker {
|
||||
image 'golang:1.23-alpine'
|
||||
@ -13,6 +13,19 @@ pipeline {
|
||||
sh 'go build main.go'
|
||||
}
|
||||
}
|
||||
stage('Build static assets') {
|
||||
agent {
|
||||
docker {
|
||||
image 'node:22'
|
||||
reuseNode true
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'npm i -g pnpm'
|
||||
sh 'pnpm i'
|
||||
sh 'pnpm build'
|
||||
}
|
||||
}
|
||||
stage('Populate env') {
|
||||
steps {
|
||||
sh 'rm .env || true'
|
||||
|
@ -4,8 +4,9 @@
|
||||
"description": "",
|
||||
"main": "main.go",
|
||||
"scripts": {
|
||||
"dev": "concurrently 'air' 'tailwindcss -i ./public/css/input.css -o ./public/css/output.css --watch' 'templ generate --watch'",
|
||||
"air": "air",
|
||||
"build": "tailwindcss -i ./public/css/input.css -o ./public/css/output.css --minify",
|
||||
"dev": "concurrently 'air' 'tailwindcss -i ./public/css/input.css -o ./public/css/output.css --watch' 'templ generate --watch'",
|
||||
"tailwind:watch": "tailwindcss -i ./public/css/input.css -o ./public/css/output.css --watch",
|
||||
"tailwind:build": "tailwindcss -i ./public/css/input.css -o ./public/css/output.css --minify",
|
||||
"temple:watch": "templ generate --watch"
|
||||
|
Loading…
Reference in New Issue
Block a user