diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..40b6b9bbc1af5d6584a6709f0d7e8a9927c8af54 --- /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