From 9a8056c8c677c14619f376916cd6400369f06875 Mon Sep 17 00:00:00 2001 From: Wolfgang Knopki <wolfgang.knopki@hft-stuttgart.de> Date: Fri, 12 Mar 2021 08:24:51 +0000 Subject: [PATCH] Update .gitlab-ci.yml, adapted to new pipeline --- .gitlab-ci.yml | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6cebbc4..744d69a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,6 @@ -variables: - EXPORT_DIR: "/var/www/html/pages" - stages: - test - deploy - - cleanup test-job: stage: test @@ -22,22 +18,9 @@ test-job: only: - master -deploy-job: +pages: stage: deploy script: - - if [ -d "$EXPORT_DIR/$CI_PROJECT_NAME" ]; then rm -r "$EXPORT_DIR/$CI_PROJECT_NAME"; fi - - mkdir -p "$EXPORT_DIR/$CI_PROJECT_NAME" - - cp -r public/* "$EXPORT_DIR/$CI_PROJECT_NAME" - tags: - - docker + - echo "Deploying to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/" only: - master - when: manual - -cleanup-job: - stage: cleanup - script: - - if [ -d "$EXPORT_DIR/$CI_PROJECT_NAME" ]; then rm -r "$EXPORT_DIR/$CI_PROJECT_NAME"; fi - tags: - - docker - when: manual \ No newline at end of file -- GitLab