Skip to content
Snippets Groups Projects
Commit d975a34a authored by jurgenhaas's avatar jurgenhaas
Browse files

Use source branch as environment directory

parent fe9b8095
Branches
No related tags found
1 merge request!80Development
Pipeline #953609 passed
......@@ -41,10 +41,10 @@ DeployMR:
variables:
GIT_STRATEGY: none
script:
- a -m synchronize -a "src=${PWD}/site/ dest=/var/www/docs/eca-mr/${CI_ENVIRONMENT_SLUG} delete=yes" --limit=bsdevop1
- a -m synchronize -a "src=${PWD}/site/ dest=/var/www/docs/eca-mr/${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME} delete=yes" --limit=bsdevop1
environment:
name: review/$CI_COMMIT_REF_SLUG
url: https://ecaguide.org/MR/$CI_ENVIRONMENT_SLUG
url: https://ecaguide.org/MR/$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
on_stop: CleanupDeployMR
cache: {}
only:
......@@ -57,7 +57,7 @@ CleanupDeployMR:
variables:
GIT_STRATEGY: none
script:
- a -m file -a "path=/var/www/docs/eca-mr/${CI_ENVIRONMENT_SLUG} state=absent" --limit=bsdevop1
- a -m file -a "path=/var/www/docs/eca-mr/${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME} state=absent" --limit=bsdevop1
environment:
name: review/$CI_COMMIT_REF_SLUG
action: stop
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment