htmxui/Jenkinsfile
2024-10-24 20:46:50 -05:00

35 lines
484 B
Groovy

pipeline {
agent any
stages {
stage('Build release binary') {
agent {
docker {
reuseNode true
image 'rust:1-bullseye'
}
}
steps {
sh 'cargo build --release'
}
}
stage('Build tailwind') {
agent {
docker {
image 'node:22'
}
}
steps {
sh 'npm i -g pnpm'
sh 'pnpm i'
sh 'pnpm build'
}
}
stage('Profit') {
steps {
sh 'docker-compose down || true'
sh 'docker-compose up -d --build'
}
}
}
}