Update Jenkinsfile
Some checks failed
tombutcher.work/tombutcher-ui/pipeline/head There was a failure building this commit
Some checks failed
tombutcher.work/tombutcher-ui/pipeline/head There was a failure building this commit
This commit is contained in:
parent
1f0789e8eb
commit
af89b535a6
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@ -21,31 +21,25 @@ pipeline {
|
||||
|
||||
stage('Install dependencies') {
|
||||
steps {
|
||||
script {
|
||||
sh 'npm install' // Install project dependencies
|
||||
}
|
||||
sh 'npm install' // Install project dependencies
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build') {
|
||||
steps {
|
||||
script {
|
||||
sh 'npm ls vite && npm run build' // Build the project
|
||||
}
|
||||
sh 'npm ls vite && npm run build' // Build the project
|
||||
}
|
||||
}
|
||||
|
||||
stage('Deploy to Cloudflare Pages') {
|
||||
steps {
|
||||
script {
|
||||
sh '''
|
||||
wrangler pages deploy ./build \
|
||||
--project-name $PROJECT_NAME \
|
||||
--branch main \
|
||||
--account-id $CLOUDFLARE_ACCOUNT_ID \
|
||||
--api-token $CLOUDFLARE_API_TOKEN
|
||||
sh '''
|
||||
wrangler pages deploy ./build \
|
||||
--project-name $PROJECT_NAME \
|
||||
--branch main \
|
||||
--account-id $CLOUDFLARE_ACCOUNT_ID \
|
||||
--api-token $CLOUDFLARE_API_TOKEN
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user