From f7fa8c022d12acf691ae6f7afe8466d79616a2d7 Mon Sep 17 00:00:00 2001 From: Kutzner Date: Tue, 23 Nov 2021 21:08:37 +0000 Subject: [PATCH] add .gitlab-ci.yml --- .gitlab-ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..6fdf0a0 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +image: alpine:latest + +stages: + - test + - deploy + +test-job: + stage: test + script: + - echo "Testing files exist..." + - test -f public/index.html + - test -f public/main.js + - test -f public/settings.js + - test -f public/assets/css/style.css + - test -f public/assets/css/mobile.css + - test -f public/assets/images/header.jpg + - test -f public/assets/images/hft_logo.svg + - test -f public/home/index.html + - echo "Test finished, all ok" + only: + - master + +pages: + stage: deploy + script: + - echo "Deploying to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/" + artifacts: + paths: + - public + only: + - master \ No newline at end of file -- GitLab