pseudosubs-v1/Jenkinsfile

26 lines
704 B
Plaintext
Raw Normal View History

2024-02-29 14:14:57 +00:00
pipeline {
agent any
environment {
PATH = "/var/lib/jenkins/.nvm/versions/node/v20.9.0/bin:/var/lib/jenkins/bin:${env.PATH}"
}
stages {
stage('Install') {
steps {
sh 'pnpm i'
}
}
stage('Build frontend') {
steps {
sh 'pnpm build-only'
}
}
stage('Deploy') {
steps {
sh 'docker build -t bun-pseudosubs-v1:latest .'
2024-02-29 14:31:57 +00:00
sh 'docker stop bun-pseudosubs-v1 || docker rm bun-pseudosubs-v1 || true'
2024-02-29 14:14:57 +00:00
sh 'docker run -d --name bun-pseudosubs-v1 -p 3485:3485 bun-pseudosubs-v1:latest'
}
}
}
}