diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8b599d6..02e6db8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ default: + image: node:latest tags: - - website + - node stages: - build @@ -12,14 +13,15 @@ build: paths: - build/ script: - - echo "Build" - npm install - npm run build deploy-beta: stage: deploy + before_script: + - apt-get update + - apt-get install ncftp script: - - echo "Deploy to beta server" - ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com beta_site build/* environment: name: beta @@ -29,8 +31,10 @@ deploy-beta: deploy: stage: deploy + before_script: + - apt-get update + - apt-get install ncftp script: - - echo "Deploy to server" - ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com . build/* environment: name: website