31 lines
352 B
Plaintext
31 lines
352 B
Plaintext
|
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/'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|