From 4c0fbd31d8b3f5cab9e18ad73d9e44253f3f37ba Mon Sep 17 00:00:00 2001 From: Olivier Demers Date: Mon, 20 Feb 2023 22:05:48 -0500 Subject: [PATCH] updated build/deploy ci --- .gitlab-ci.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7a54d6e..6e85931 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,11 +1,22 @@ -deploy-beta: +default: tags: - website + +stages: + - build + - deploy + +build: + stage: build + script: + - echo "Build" + - npm install + - npm run build + +deploy-beta: stage: deploy script: - echo "Deploy to beta server" - - npm install - - npm run build - ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com beta_site build/* environment: name: beta @@ -14,16 +25,12 @@ deploy-beta: - beta deploy: - tags: - - website stage: deploy script: - echo "Deploy to server" - - npm install - - npm run build - ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com build/* environment: - name: beta + name: website url: http://pls5618.com only: - main