Commit c2808bc9 authored by Pietro Braghieri's avatar Pietro Braghieri

Update .gitlab-ci.yml

parent 637f876d
......@@ -15,7 +15,6 @@ variables:
UPDATE_SITE_MOUNT_DIR: "/tmp/www_us"
UPDATE_SITE_PROD_TARGET_DIR: "html/tools/aida_sde"
UPDATE_SITE_DEVEL_TARGET_DIR: "${UPDATE_SITE_PROD_TARGET_DIR}_devel"
REPOSITORY_TO_COPY: "eu.fbk.tools.aida.sde.repository/target/repository"
stages:
......@@ -32,27 +31,6 @@ 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
# allow_failure: false
only:
- master
deploy_to_production_update_site:
dependencies:
- maven_build_and_test
......
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