2023-10-08 07:35:17 +02:00
|
|
|
default:
|
|
|
|
image: node:18.17.1
|
|
|
|
|
|
|
|
deploy_preview:
|
|
|
|
stage: deploy
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
script:
|
|
|
|
- npm install --global vercel
|
2023-10-08 21:17:22 +02:00
|
|
|
- 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}"
|
2023-10-08 07:35:17 +02:00
|
|
|
|
|
|
|
deploy_development:
|
|
|
|
stage: deploy
|
|
|
|
only:
|
|
|
|
- develop
|
|
|
|
script:
|
|
|
|
- npm install --global vercel
|
2023-10-08 21:17:22 +02:00
|
|
|
- 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}"
|
2023-10-08 07:35:17 +02:00
|
|
|
|
|
|
|
deploy_production:
|
|
|
|
stage: deploy
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
script:
|
|
|
|
- npm install --global vercel
|
2023-10-08 21:17:22 +02:00
|
|
|
- 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}"
|