Update jenkinsfile to build astro site

This commit is contained in:
Araozu 2024-04-23 10:18:38 -05:00
parent db5ebbb807
commit 42b724966d

View File

@ -9,23 +9,14 @@ pipeline {
sh 'bun i' sh 'bun i'
} }
} }
stage('Build tailwind') {
environment {
PATH = "${env.WORKSPACE}/node_modules/.bin:${env.PATH}"
}
steps {
sh 'md-docs'
sh './node_modules/.bin/tailwindcss -i ./tailwind.css -o ./static/css/out.css --minify'
}
}
stage('Build bundle') { stage('Build bundle') {
steps { steps {
sh 'bun bundle' sh 'bun run build'
} }
} }
stage('Deploy') { stage('Deploy') {
steps { steps {
sh 'cp -r ./static/* /var/www/thp-docs/' sh 'cp -r ./dist/* /var/www/thp-docs/'
} }
} }
} }