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 {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('Install') {
|
stage('Build go binary') {
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image 'golang:1.23-alpine'
|
image 'golang:1.23-alpine'
|
||||||
@ -13,6 +13,19 @@ pipeline {
|
|||||||
sh 'go build main.go'
|
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') {
|
stage('Populate env') {
|
||||||
steps {
|
steps {
|
||||||
sh 'rm .env || true'
|
sh 'rm .env || true'
|
||||||
|
@ -4,8 +4,9 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"main": "main.go",
|
"main": "main.go",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "concurrently 'air' 'tailwindcss -i ./public/css/input.css -o ./public/css/output.css --watch' 'templ generate --watch'",
|
|
||||||
"air": "air",
|
"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: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",
|
"tailwind:build": "tailwindcss -i ./public/css/input.css -o ./public/css/output.css --minify",
|
||||||
"temple:watch": "templ generate --watch"
|
"temple:watch": "templ generate --watch"
|
||||||
|
Loading…
Reference in New Issue
Block a user