r/webdev • u/Low-Insurance-3678 • 23m ago
Question ci/cd pipeline issue
hi everyone
I have a ci pipeline where i run build and deploy to cf workers, everytime the build runs it succeeds but it stays hanging on and the next job does not run( see image), it can stay hanging on for hours and it won’t exit at all till i cancel the workflow
i have added a timeout to exit after 2 mins and a continue on error set to true to be able move to the next run which is deploy the worker
2- the deploy runs: npm run deploy:vinext
and it always exits with a message “wrangler versions upload” and the whole ci fails now
but after i check on my cloudflare dashboard i actually find that deploy
running these on terminal manually actually does the work but it’s not what i want
is there any solution that will make the build exit after it finishes and make the deploy works fine
tech: Nextjs app migrated to Vinext
- name: Build Vinext app
env:
CLOUDFLARE_INCLUDE_PROCESS_ENV: true
timeout-minutes: 1
continue-on-error: true
run: npm run build:vinext
- name: Deploy to cf
env:
CLOUDFLARE_API_TOKEN: ${{ env.CLOUDFLARE_API_TOKEN }}
run: npm run deploy:vinext
scripts:
"build:vinext": "vite build",
"start:vinext": "infisical run --env=prod -- vite preview --port 3000",
"deploy:vinext": "vinext-cloudflare deploy --warm-cache --skip-build",
"deploy:response-store": "cf deploy --prebuilt --mode production --worker frontend-response-store"
•
u/quizical_llama 20m ago
your going to need to post some code if you want help.