Commit 0c04faa9 authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

Update .gitlab-ci.yml

parent 95288503
Pipeline #6057 passed with stages
in 24 seconds
variables:
EXPORT_DIR: "/var/www/html/pages"
image: alpine:latest
stages:
- test
- deploy
- cleanup
test-job:
stage: test
......@@ -22,22 +20,12 @@ 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
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
- echo "Deploying to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/"
artifacts:
paths:
- public
only:
- master
Supports Markdown
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