From 62d9ca5dd075fe739841d28ee003c7ed27a81cdf Mon Sep 17 00:00:00 2001 From: Olivier Demers Date: Wed, 27 Sep 2023 20:18:31 +0000 Subject: [PATCH] update for new runner --- .gitlab-ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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