Commit 5c171ac5 authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Update .gitlab-ci.yml

- export variable
- security test
parent c8508742
Pipeline #3685 failed with stages
in 4 minutes and 18 seconds
......@@ -41,8 +41,8 @@ apache-dev:
dependencies:
- build
script:
- ([ "$CI_COMMIT_REF_NAME" == "master" ] && PUBLISH_DIR="/var/www/html" || PUBLISH_DIR="/var/www/calcul-dev/$CI_COMMIT_REF_NAME")
- echo "Publishing branch $CI_COMMIT_REF_NAME to $PUBLISH_DIR"
- ([ "$CI_COMMIT_REF_NAME" == "master" ] && export PUBLISH_DIR="/var/www/html" || export PUBLISH_DIR="/var/www/calcul-dev/$CI_COMMIT_REF_NAME")
- if [ -z ${PUBLISH_DIR+x} ]; then echo "$PUBLISH_DIR is unset" ; exit 1 ; else echo "Publishing branch $CI_COMMIT_REF_NAME to $PUBLISH_DIR"; fi
- rsync -av --delete --exclude 'attachments' output/ $PUBLISH_DIR/
- rsync -av --delete content/attachments/ $PUBLISH_DIR/attachments/
......
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