From df6e00fe6c30e67e0fd9bc743b9efffb7530a1fa Mon Sep 17 00:00:00 2001 From: Wolfgang Knopki Date: Mon, 13 Jul 2020 08:30:45 +0200 Subject: [PATCH] added cicd configuration --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..99f4138 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +pages-devel: + stage: deploy + script: + - npm install + - "pm2 delete --silent project || :" + - pm2 start ./app.js --name=project + - pm2 save + tags: + - testing + only: + - testing + +pages-devel: + stage: deploy + script: + - npm install + - "pm2 delete --silent project || :" + - pm2 start ./app.js --name=project + - pm2 save + tags: + - production + only: + - master + -- GitLab