fix: add static files to jenkins pipeline

This commit is contained in:
Araozu 2024-10-07 06:45:58 -05:00
parent 70e30f7ac0
commit fede2c3f8e
2 changed files with 16 additions and 2 deletions

15
Jenkinsfile vendored
View File

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

View File

@ -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"