htmxui/Jenkinsfile

35 lines
484 B
Plaintext
Raw Normal View History

2024-10-19 01:49:16 +00:00
pipeline {
2024-10-19 02:11:40 +00:00
agent any
2024-10-19 01:49:16 +00:00
stages {
stage('Build release binary') {
2024-10-19 02:11:40 +00:00
agent {
docker {
reuseNode true
image 'rust:1-bullseye'
}
}
2024-10-19 01:49:16 +00:00
steps {
sh 'cargo build --release'
}
}
2024-10-25 01:46:50 +00:00
stage('Build tailwind') {
agent {
docker {
image 'node:22'
}
}
steps {
sh 'npm i -g pnpm'
sh 'pnpm i'
sh 'pnpm build'
}
}
2024-10-19 01:49:16 +00:00
stage('Profit') {
steps {
sh 'docker-compose down || true'
sh 'docker-compose up -d --build'
}
}
}
}