diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..89911f5 --- /dev/null +++ b/Jenkinsfile @@ -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/' + } + } + } +} + diff --git a/Jenkinsfile.groovy b/Jenkinsfile.groovy deleted file mode 100644 index a4ff150..0000000 --- a/Jenkinsfile.groovy +++ /dev/null @@ -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' - } - } - } -}