Added cloudflare api token and ensuring wrangler is installed.
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
This commit is contained in:
parent
21f61229e4
commit
5301530c70
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -7,8 +7,9 @@ def deploy() {
|
|||||||
sh 'yarn install --frozen-lockfile --production=false'
|
sh 'yarn install --frozen-lockfile --production=false'
|
||||||
sh 'NODE_ENV=production yarn build'
|
sh 'NODE_ENV=production yarn build'
|
||||||
// Deploy to Cloudflare Pages using wrangler
|
// Deploy to Cloudflare Pages using wrangler
|
||||||
// CLOUDFLARE_API_TOKEN should be set as a Jenkins credential/env variable
|
withCredentials([string(credentialsId: 'cloudflare-api-token', variable: 'CLOUDFLARE_API_TOKEN')]) {
|
||||||
sh 'npx wrangler pages deploy build'
|
sh 'yarn wrangler pages deploy build'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@ -120,7 +120,8 @@
|
|||||||
"vite": "^7.1.3",
|
"vite": "^7.1.3",
|
||||||
"vite-plugin-eslint": "^1.8.1",
|
"vite-plugin-eslint": "^1.8.1",
|
||||||
"vite-plugin-svgo": "^2.0.0",
|
"vite-plugin-svgo": "^2.0.0",
|
||||||
"vite-plugin-svgr": "^4.5.0"
|
"vite-plugin-svgr": "^4.5.0",
|
||||||
|
"wrangler": "^3.100.0"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "com.tombutcher.farmcontrol",
|
"appId": "com.tombutcher.farmcontrol",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user