Commit cea65d93 authored by Pietro Braghieri's avatar Pietro Braghieri

Update .gitlab-ci.yml

parent 7b3c0f59
......@@ -39,6 +39,8 @@ maven_build_and_test:
UPDATE_SITE_MOUNT_DIR: "/tmp/www_ci"
UPDATE_SITE_PROD_TARGET_DIR: "html/tools/aida_sde"
REPOSITORY_TO_COPY: "eu.fbk.tools.aida.sde.repository/target/repository"
MAVEN_REPOSITORY_DIR: "html/tools/maven_repository"
stage: deploy
environment: staging
......@@ -49,6 +51,7 @@ maven_build_and_test:
- mkdir -p $UPDATE_SITE_MOUNT_DIR/$UPDATE_SITE_PROD_TARGET_DIR
- cp -r ${REPOSITORY_TO_COPY}/* $UPDATE_SITE_MOUNT_DIR/$UPDATE_SITE_PROD_TARGET_DIR
- chmod -R 0777 $UPDATE_SITE_MOUNT_DIR/$UPDATE_SITE_PROD_TARGET_DIR
- mvn $MAVEN_CLI_OPTS -Ddistribution.repository=$UPDATE_SITE_MOUNT_DIR/$MAVEN_REPOSITORY_DIR deploy
- fusermount -uz $UPDATE_SITE_MOUNT_DIR
only:
refs:
......
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