workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🐛 BUG: CircleCI deploy pages

Open goldylucks opened this issue 3 years ago • 0 comments
trafficstars

What version of Wrangler are you using?

2.0.25

What operating system are you using?

Ubuntu 20.04

Describe the Bug

When I'm running deploy locally:

CLOUDFLARE_ACCOUNT_ID=********** npx wrangler pages publish dist/apps/breath --project-name=breathe

It works fine.

However in circle ci when I set it through like the docs:

  deploy:
    docker:
      - image: cimg/node:18.7.0
    environment:
      CLOUDFLARE_ACCOUNT_ID: $CLOUDFLARE_ACCOUNT_ID
      CLOUDFLARE_API_TOKEN: $CLOUDFLARE_API_TOKEN
    steps:
      - checkout
      - bt-yarn-install
      - run: yarn build
      - setup_remote_docker:
          version: 20.10.14
      - run: yarn deploy

I'm getting this error: image

I've set the environment variables on Circle CI as per the docs

goldylucks avatar Aug 11 '22 05:08 goldylucks