update jenkinsfile

This commit is contained in:
Araozu 2024-10-05 06:52:02 -05:00
parent 9bd1aeb1a5
commit 4ea0c093fa
2 changed files with 30 additions and 24 deletions

30
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,30 @@
pipeline {
agent {
docker {
image 'node:22'
}
}
stages {
stage('Install pnpm') {
steps {
sh 'npm i -g pnpm'
}
}
stage('Install dependencies') {
steps {
sh 'pnpm i'
}
}
stage('Buid') {
steps {
sh 'pnpm build'
}
}
stage('Deploy') {
steps {
sh 'mv dist/* /var/www/thp-lang.org/'
}
}
}
}

View File

@ -1,24 +0,0 @@
pipeline {
agent {
docker {
image 'node:22'
}
}
stages {
stage('Install pnpm') {
steps {
sh 'npm i -g pnpm'
}
}
stage('Install dependencies') {
steps {
sh 'pnpm i'
}
}
stage('Buid') {
steps {
sh 'pnpm build'
}
}
}
}