Commit 919d043d authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch '87-auto-cleanup-of-environments' into 'master'

Fixes https://gitlab.com/to-be-continuous/terraform/-/issues/87 - auto-cleanup...

Closes #87

See merge request to-be-continuous/terraform!138
parents d7f9d432 ac8ae887
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1352,6 +1352,7 @@ tf-review:
  environment:
    name: review/$CI_COMMIT_REF_NAME
    action: start
    auto_stop_in: "$TF_REVIEW_AUTOSTOP_DURATION"    
  resource_group: tf-review/$CI_COMMIT_REF_NAME
  rules:
    # exclude tags
@@ -1381,7 +1382,6 @@ tf-destroy-review:
  environment:
    name: review/$CI_COMMIT_REF_NAME
    action: stop
    auto_stop_in: "$TF_REVIEW_AUTOSTOP_DURATION"
  resource_group: tf-review/$CI_COMMIT_REF_NAME
  rules:
    # exclude tags
@@ -1431,6 +1431,7 @@ tf-integration:
  environment:
    name: integration
    action: start
    auto_stop_in: "$TF_INTEG_AUTOSTOP_DURATION"
  resource_group: tf-integration
  rules:
    # exclude non-integration branches
@@ -1457,7 +1458,6 @@ tf-destroy-integration:
  environment:
    name: integration
    action: stop
    auto_stop_in: "$TF_INTEG_AUTOSTOP_DURATION"
  resource_group: tf-integration
  rules:
    # only on integration branch(es), with $TF_INTEG_ENABLED set
@@ -1504,6 +1504,7 @@ tf-staging:
  environment:
    name: staging
    action: start
    auto_stop_in: "$TF_STAGING_AUTOSTOP_DURATION"    
  resource_group: tf-staging
  rules:
    # exclude non-production branches
@@ -1530,7 +1531,6 @@ tf-destroy-staging:
  environment:
    name: staging
    action: stop
    auto_stop_in: "$TF_STAGING_AUTOSTOP_DURATION"
  resource_group: tf-staging
  rules:
    # only on production branch(es), with $TF_STAGING_ENABLED set