Commit ac8ae887 authored by Stuart Moore's avatar Stuart Moore
Browse files

fix: auto-cleanup of review apps not working

parent ff823205
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1346,6 +1346,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
@@ -1375,7 +1376,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
@@ -1425,6 +1425,7 @@ tf-integration:
  environment:
    name: integration
    action: start
    auto_stop_in: "$TF_INTEG_AUTOSTOP_DURATION"
  resource_group: tf-integration
  rules:
    # exclude non-integration branches
@@ -1451,7 +1452,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
@@ -1498,6 +1498,7 @@ tf-staging:
  environment:
    name: staging
    action: start
    auto_stop_in: "$TF_STAGING_AUTOSTOP_DURATION"    
  resource_group: tf-staging
  rules:
    # exclude non-production branches
@@ -1524,7 +1525,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