From 75c134b22955ffe76a773fe43e9d63029bff898b Mon Sep 17 00:00:00 2001 From: Rushikesh Padsala <rushikesh.padsala@hft-stuttgart.de> Date: Sun, 2 Jul 2023 12:00:17 +0000 Subject: [PATCH] Add new file --- .gitlab-ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..40b6b9b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,30 @@ +image: node:lts + +stages: + - build + - deploy + +build: + stage: build + script: + - cd /builds/gitlab/$CI_PROJECT_PATH/public + - npm install + - npm run build + - npx tsc + artifacts: + paths: + - public + only: + - master + +pages: + stage: deploy + script: + - apt-get update -qy + - apt-get install -y rsync + - echo "Deploying to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/" + artifacts: + paths: + - public + only: + - master -- GitLab