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