From 42b724966db43040a8677b923ce4ec29820d71f1 Mon Sep 17 00:00:00 2001 From: Araozu Date: Tue, 23 Apr 2024 10:18:38 -0500 Subject: [PATCH] Update jenkinsfile to build astro site --- Jenkinsfile.groovy | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile.groovy b/Jenkinsfile.groovy index c389b94..018b825 100644 --- a/Jenkinsfile.groovy +++ b/Jenkinsfile.groovy @@ -9,23 +9,14 @@ pipeline { 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') { steps { - sh 'bun bundle' + sh 'bun run build' } } stage('Deploy') { steps { - sh 'cp -r ./static/* /var/www/thp-docs/' + sh 'cp -r ./dist/* /var/www/thp-docs/' } } }