From b57c7549e1ce280125696d57b77e1b94e0f9fddf Mon Sep 17 00:00:00 2001 From: Koukofikis <athanasios.koukofikis@hft-stuttgart.de> Date: Wed, 19 May 2021 08:36:52 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c9f5fad..7ef1d5b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,11 +1,24 @@ image: alpine:latest +stages: + - test + - deploy + +test-job: + stage: test + script: + - echo "Testing files exist..." + - test -f public/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/" + - echo "Deploying to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/" artifacts: paths: - - public + - public only: - - master + - master -- GitLab