All checks were successful
thehideout/TheHideout-API/pipeline/head This commit looks good
26 lines
651 B
Groovy
26 lines
651 B
Groovy
def deploy() {
|
|
node('ubuntu') {
|
|
try {
|
|
checkout scm
|
|
|
|
nodejs(nodeJSInstallationName: 'Node23') {
|
|
stage('Install') {
|
|
sh 'yarn install --frozen-lockfile --production=false'
|
|
}
|
|
|
|
stage('Deploy') {
|
|
// Deploy to Cloudflare Workers using wrangler
|
|
withCredentials([string(credentialsId: 'th-cloudflare-api-token', variable: 'CLOUDFLARE_API_TOKEN')]) {
|
|
sh 'yarn deploy'
|
|
}
|
|
}
|
|
}
|
|
} finally {
|
|
cleanWs()
|
|
}
|
|
}
|
|
}
|
|
|
|
deploy()
|
|
|