Compare commits

..

No commits in common. "4028675dd01729ff4e72b553b03142e274b35d4f" and "5a951d8c905b0797a85b295dc831f725baba5059" have entirely different histories.

12
Jenkinsfile vendored
View File

@ -1,21 +1,17 @@
def deploy() {
node('ubuntu') {
try {
checkout scm
stage('Deploy (Ubuntu)') {
checkout scm
nodejs(nodeJSInstallationName: 'Node23') {
stage('Install') {
nodejs(nodeJSInstallationName: 'Node23') {
sh 'yarn install --frozen-lockfile --production=false'
}
stage('Build') {
sh 'NODE_ENV=production yarn build'
}
stage('Deploy') {
// Deploy to Cloudflare Pages using wrangler
withCredentials([string(credentialsId: 'th-cloudflare-api-token', variable: 'CLOUDFLARE_API_TOKEN')]) {
sh 'npx wrangler pages deploy dist'
sh 'yarn wrangler pages deploy dist'
}
}
}