Commit 117cf708 authored by ale's avatar ale
Browse files

Reenable noblogs/web CI deployments

With stricter checks on changed files.
parent 9f57366a
......@@ -74,7 +74,7 @@ docker_build_and_release_tests:
deploy_mail:
<<: *base_deploy
environment:
name: review-mail/$CI_COMMIT_REF_SLUG
name: review/mail/$CI_COMMIT_REF_SLUG
url: $VMINE_GROUP_URL
on_stop: stop_deploy_mail
auto_stop_in: "3 hours"
......@@ -83,6 +83,12 @@ deploy_mail:
TEST_NAME: mail
CREATE_ENV_VARS: "-e config.float_debian_dist=bullseye -e inventory.group_vars.vagrant.ansible_python_interpreter=/usr/bin/python3"
rules:
- changes:
- "*.noblogs.yml"
- "*.web.yml"
- roles/noblogs/**/*
- roles/web-users/**/*
when: never
- changes:
- "*.common.yml"
- "*.mail.yml"
......@@ -93,59 +99,59 @@ stop_deploy_mail:
<<: *stop_deploy
dependencies: [deploy_mail]
environment:
name: review-mail/$CI_COMMIT_REF_SLUG
name: review/mail/$CI_COMMIT_REF_SLUG
action: stop
variables:
VMINE_TAG: mail
#deploy_noblogs:
# <<: *base_deploy
# environment:
# name: review-noblogs/$CI_COMMIT_REF_SLUG
# url: $VMINE_GROUP_URL
# on_stop: stop_deploy_noblogs
# auto_stop_in: "3 hours"
# variables:
# VMINE_TAG: noblogs
# TEST_NAME: noblogs
# CREATE_ENV_VARS: "-e config.float_debian_dist=bullseye -e inventory.group_vars.vagrant.ansible_python_interpreter=/usr/bin/python3"
# rules:
# - changes:
# - "*.noblogs.yml"
# - roles/noblogs/**/*
# if: $CI_MERGE_REQUEST_ID
deploy_noblogs:
<<: *base_deploy
environment:
name: review/noblogs/$CI_COMMIT_REF_SLUG
url: $VMINE_GROUP_URL
on_stop: stop_deploy_noblogs
auto_stop_in: "3 hours"
variables:
VMINE_TAG: noblogs
TEST_NAME: noblogs
CREATE_ENV_VARS: "-e config.float_debian_dist=bullseye -e inventory.group_vars.vagrant.ansible_python_interpreter=/usr/bin/python3"
rules:
- changes:
- "*.noblogs.yml"
- roles/noblogs/**/*
if: $CI_MERGE_REQUEST_ID
#stop_deploy_noblogs:
# <<: *stop_deploy
# dependencies: [deploy_noblogs]
# environment:
# name: review-noblogs/$CI_COMMIT_REF_SLUG
# action: stop
# variables:
# VMINE_TAG: noblogs
stop_deploy_noblogs:
<<: *stop_deploy
dependencies: [deploy_noblogs]
environment:
name: review/noblogs/$CI_COMMIT_REF_SLUG
action: stop
variables:
VMINE_TAG: noblogs
#deploy_web:
# <<: *base_deploy
# environment:
# name: review-web/$CI_COMMIT_REF_SLUG
# url: $VMINE_GROUP_URL
# on_stop: stop_deploy_web
# auto_stop_in: "3 hours"
# variables:
# VMINE_TAG: web
# TEST_NAME: web
# CREATE_ENV_VARS: "-e config.float_debian_dist=bullseye -e inventory.group_vars.vagrant.ansible_python_interpreter=/usr/bin/python3"
# rules:
# - changes:
# - "*.web.yml"
# - roles/web-users/**/*
# if: $CI_MERGE_REQUEST_ID
deploy_web:
<<: *base_deploy
environment:
name: review/web/$CI_COMMIT_REF_SLUG
url: $VMINE_GROUP_URL
on_stop: stop_deploy_web
auto_stop_in: "3 hours"
variables:
VMINE_TAG: web
TEST_NAME: web
CREATE_ENV_VARS: "-e config.float_debian_dist=bullseye -e inventory.group_vars.vagrant.ansible_python_interpreter=/usr/bin/python3"
rules:
- changes:
- "*.web.yml"
- roles/web-users/**/*
if: $CI_MERGE_REQUEST_ID
#stop_deploy_web:
# <<: *stop_deploy
# dependencies: [deploy_web]
# environment:
# name: review-web/$CI_COMMIT_REF_SLUG
# action: stop
# variables:
# VMINE_TAG: web
stop_deploy_web:
<<: *stop_deploy
dependencies: [deploy_web]
environment:
name: review/web/$CI_COMMIT_REF_SLUG
action: stop
variables:
VMINE_TAG: web
Supports Markdown
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