diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c9f5fadb6c31741d7ac353a8e126031b21b289d3..7ef1d5b0dbfb4eeff3b917179a59d81932554827 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