Basic case
(True story) react project deployment
#!/bin/bash
sed -i "s/ACCOUNT_ID/$(printenv CLOUDFLARE_ACCOUNT_ID)/" wrangler.toml
sed -i "s/ZONE_ID_STAGE/$(printenv CLOUDFLARE_ZONE_ID_STAGE)/" wrangler.toml
export CLOUDFLARE_API_KEY=$(printenv CLOUDFLARE_API_TOKEN)
export CLOUDFLARE_EMAIL=$(printenv CLOUDFLARE_EMAIL)#!/bin/bash
yarn install --frozen-lockfile#!/bin/bash
cp .env.stage .env
yarn build#!/bin/bash
wrangler deploy --env=stageversion: '1.0'
from: 'romainlavabrefairfair/deploy-react'
steps:
- name: '@init-wrangler'
script: '/init-wrangler.sh'
- name: '@install'
script: '/install.sh'
- name: '@build'
script: '/build.sh'
- name: '@push'
script: '/push.sh'Last updated