fedipage/.gitlab-ci.yml
Jeffrey Phillips Freeman 1afe272ca0
initial commit
2023-10-08 01:35:17 -04:00

33 lines
975 B
YAML

default:
image: node:18.17.1
deploy_preview:
stage: deploy
except:
- master
- develop
script:
- npm install --global vercel
- vercel pull --yes --environment=preview --token="${VERCEL_TOKEN}" -S flear
- vercel build --token="${VERCEL_TOKEN}" -S flear
- vercel deploy --prebuilt --token="${VERCEL_TOKEN}" -S flear
deploy_development:
stage: deploy
only:
- develop
script:
- npm install --global vercel
- vercel pull --yes --environment=development --token="${VERCEL_TOKEN}" -S flear
- vercel build --token="${VERCEL_TOKEN}" -S flear
- vercel deploy --prebuilt --token="${VERCEL_TOKEN}" -S flear
deploy_production:
stage: deploy
only:
- master
script:
- npm install --global vercel
- vercel pull --yes --environment=production --token="${VERCEL_TOKEN}" -S flear
- vercel build --prod --token="${VERCEL_TOKEN}" -S flear
- vercel deploy --prebuilt --prod --token="${VERCEL_TOKEN}" -S flear