2024-10-05 11:52:02 +00:00
|
|
|
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 {
|
2024-10-05 19:07:46 +00:00
|
|
|
sh 'THP_BINARY=/var/bin/thp pnpm build'
|
2024-10-05 11:52:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
|
|
|
steps {
|
2024-10-05 19:12:21 +00:00
|
|
|
sh 'mv -f dist/* /var/www/thp-lang.org/'
|
2024-10-05 11:52:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|