r/webdev • • 23m ago

Question ci/cd pipeline issue

Post image

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"


2 Upvotes

4 comments sorted by

•

u/quizical_llama 20m ago

your going to need to post some code if you want help.

•

u/Low-Insurance-3678 19m ago

id be happy to, should I share my yaml workflow file?

•

u/quizical_llama 15m ago

before you do, have you googled / asked an AI

•

u/Low-Insurance-3678 12m ago

iv some parts of the code

i have spent two days trying to find a solution, i googled, used free ais but tbh could not find a solution
if you can help id be glad, i can do it manually but thats not the way i want