mirror of
https://git.qoto.org/fedipage/fedipage.git
synced 2024-11-15 19:47:57 +01:00
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
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 "${VERCEL_SCOPE}"
|
|
- vercel build --token="${VERCEL_TOKEN}" -S "${VERCEL_SCOPE}"
|
|
- vercel deploy --prebuilt --token="${VERCEL_TOKEN}" -S "${VERCEL_SCOPE}"
|
|
|
|
deploy_development:
|
|
stage: deploy
|
|
only:
|
|
- develop
|
|
script:
|
|
- npm install --global vercel
|
|
- vercel pull --yes --environment=development --token="${VERCEL_TOKEN}" -S "${VERCEL_SCOPE}"
|
|
- vercel build --token="${VERCEL_TOKEN}" -S "${VERCEL_SCOPE}"
|
|
- vercel deploy --prebuilt --token="${VERCEL_TOKEN}" -S "${VERCEL_SCOPE}"
|
|
|
|
deploy_production:
|
|
stage: deploy
|
|
only:
|
|
- master
|
|
script:
|
|
- npm install --global vercel
|
|
- vercel pull --yes --environment=production --token="${VERCEL_TOKEN}" -S "${VERCEL_SCOPE}"
|
|
- vercel build --prod --token="${VERCEL_TOKEN}" -S "${VERCEL_SCOPE}"
|
|
- vercel deploy --prebuilt --prod --token="${VERCEL_TOKEN}" -S "${VERCEL_SCOPE}"
|