From 0fc7ee42b0fcd80c5dd9bab88951720494836f8c Mon Sep 17 00:00:00 2001 From: kitkat <kitkat@sch.bme.hu> Date: Tue, 6 Apr 2021 17:20:46 +0200 Subject: [PATCH] Autodeploy up --- .gitlab-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..c559975 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,17 @@ +stages: + - build + - test + +build: + stage: build + script: + - echo "Building" + - npm install + - npm run build + - if["$CI_COMMIT_REF_NAME" == "master"]; then cp -R dist/* /var/www/example.com/html; fi + +build: + stage: test + script: + - echo "Testing" + - test -f "/var/www/html/index.html \ No newline at end of file -- GitLab