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

Update .gitlab-ci.yml

parent bbca94a5
......@@ -13,9 +13,9 @@ variables:
# `installAtEnd` and `deployAtEnd`are only effective with recent version of the corresponding plugins.
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true -Dmaven.repo.local=/tmp/.m2/repository"
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"
SKIP_DEPENDENCIES: "false"
AUTO_DEPLOY_TO_PRODUCTION: "false"
stages:
- test
......@@ -31,11 +31,15 @@ maven_build_and_test:
only:
- master
deploy_to_production_update_site:
.deploy_to_production_update_site: &deploy_to_production_update_site
dependencies:
- maven_build_and_test
variables:
GIT_STRATEGY: none
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"
stage: deploy
environment: staging
script:
......@@ -50,3 +54,17 @@ deploy_to_production_update_site:
# allow_failure: false
only:
- master
automatic_deploy_to_production_update_site:
<< : *deploy_to_production_update_site
only:
variables:
- $AUTO_DEPLOY_TO_PRODUCTION == "true"
manual_to_production_update_site:
<< : *deploy_to_production_update_site
when: manual
only:
variables:
- $AUTO_DEPLOY_TO_PRODUCTION == "false"
\ No newline at end of file
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