From 52d33c4b3168f654e898ea460681e5e6f76e29d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Miko=C5=82ajczak?= <Mateusz@appunitesmac251.home> Date: Wed, 20 Sep 2023 13:06:45 +0200 Subject: [PATCH] build: add deploy staging to .gitlab-ci.yml --- .gitlab-ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c8066920..db18e8a0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ stages: - lint - test + - deploy cache: paths: - ~/.cache @@ -50,4 +51,13 @@ jest: coverage_format: cobertura path: coverage/cobertura-coverage.xml - +deploy_staging: + image: node:16.16.0 + stage: deploy + only: + - development + script: + - npm install --global vercel + - vercel pull --yes --environment=preview --token=$VERCEL_TOKEN + - vercel build --token=$VERCEL_TOKEN + - vercel deploy --prebuilt --token=$VERCEL_TOKEN -- GitLab