Commit 8cbe13d4 authored by Pietro Braghieri's avatar Pietro Braghieri

Update .gitlab-ci.yml

parent d3269f1e
......@@ -32,25 +32,25 @@ maven_build_and_test:
only:
- master
#deploy_to_development_update_site:
# dependencies:
# - maven_build_and_test
# variables:
# GIT_STRATEGY: none
# stage: deploy
# environment: staging
# script:
# - echo "Deploy to development update site"
# - mkdir -p $UPDATE_SITE_MOUNT_DIR
# - sshfs -o nonempty -o umask=0777 es@es-static.fbk.eu:/ $UPDATE_SITE_MOUNT_DIR
# - mkdir -p $UPDATE_SITE_MOUNT_DIR/$UPDATE_SITE_DEVEL_TARGET_DIR
# - cp -r ${REPOSITORY_TO_COPY}/* $UPDATE_SITE_MOUNT_DIR/$UPDATE_SITE_DEVEL_TARGET_DIR
# - chmod -R 0777 $UPDATE_SITE_MOUNT_DIR/$UPDATE_SITE_DEVEL_TARGET_DIR
# - fusermount -uz $UPDATE_SITE_MOUNT_DIR
# when: manual
deploy_to_development_update_site:
dependencies:
- maven_build_and_test
variables:
GIT_STRATEGY: none
stage: deploy
environment: staging
script:
- echo "Deploy to development update site"
- mkdir -p $UPDATE_SITE_MOUNT_DIR
- sshfs -o nonempty -o umask=0777 es@es-static.fbk.eu:/ $UPDATE_SITE_MOUNT_DIR
- mkdir -p $UPDATE_SITE_MOUNT_DIR/$UPDATE_SITE_DEVEL_TARGET_DIR
- cp -r ${REPOSITORY_TO_COPY}/* $UPDATE_SITE_MOUNT_DIR/$UPDATE_SITE_DEVEL_TARGET_DIR
- chmod -R 0777 $UPDATE_SITE_MOUNT_DIR/$UPDATE_SITE_DEVEL_TARGET_DIR
- fusermount -uz $UPDATE_SITE_MOUNT_DIR
when: manual
# allow_failure: false
# only:
# - master
only:
- master
#deploy_to_production_update_site:
......
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