Commit a9f3266e authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

Update .gitlab-ci.yml; adapt to new pipeline

parent 40d01530
Pipeline #3030 passed with stages
in 25 seconds
variables: image: alpine:latest
EXPORT_DIR: "/var/www/html/pages"
stages: stages:
- test - test
- deploy - deploy
- cleanup
test-job: test-job:
stage: test stage: test
...@@ -22,22 +20,13 @@ test-job: ...@@ -22,22 +20,13 @@ test-job:
only: only:
- master - master
deploy-job:
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
only:
- master
when: manual
cleanup-job: pages:
stage: cleanup stage: deploy
script: script:
- if [ -d "$EXPORT_DIR/$CI_PROJECT_NAME" ]; then rm -r "$EXPORT_DIR/$CI_PROJECT_NAME"; fi - echo "Deploying to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/"
tags: artifacts:
- docker paths:
when: manual - public
\ No newline at end of file only:
- master
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment