Compare commits
2 Commits
bf319a8acf
...
d85111c863
| Author | SHA1 | Date | |
|---|---|---|---|
| d85111c863 | |||
| 25772bfe26 |
25
Jenkinsfile
vendored
Normal file
25
Jenkinsfile
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
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()
|
||||
|
||||
6890
package-lock.json
generated
6890
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user