Skip to content
Snippets Groups Projects
Commit aa3c9bda authored by Timo Furrer's avatar Timo Furrer
Browse files

Merge branch 'manual-apply-by-default' into 'main'

Change all potentially destructive jobs to manual by default

Closes #117

See merge request components/opentofu!254
parents 814a9e8a c0e45a52
No related branches found
No related tags found
No related merge requests found
Pipeline #265204 failed
......@@ -76,10 +76,7 @@ spec:
type: string
description: 'Path to a variables files relative to root_dir. Only used if no_plan is true otherwise the variables are coming from the plan.'
rules:
# FIXME: eventually, we'll want to define `null` as the default,
# but this is NOT support yet, see
# https://gitlab.com/gitlab-org/gitlab/-/issues/440468
default: [{when: on_success}]
default: [{when: manual}]
type: array
description: 'Defines the `rules` of the job.'
cache_policy:
......
......@@ -16,10 +16,7 @@ spec:
default: 'true'
description: 'Wheather the delete-state job should be created or not.'
rules:
# FIXME: eventually, we'll want to define `null` as the default,
# but this is NOT support yet, see
# https://gitlab.com/gitlab-org/gitlab/-/issues/440468
default: [{when: on_success}]
default: [{when: manual}]
type: array
description: 'Defines the `rules` of the job.'
......
......@@ -76,10 +76,7 @@ spec:
type: string
description: 'Path to a variables files relative to root_dir. Only used if no_plan is true otherwise the variables are coming from the plan.'
rules:
# FIXME: eventually, we'll want to define `null` as the default,
# but this is NOT support yet, see
# https://gitlab.com/gitlab-org/gitlab/-/issues/440468
default: [{when: on_success}]
default: [{when: manual}]
type: array
description: 'Defines the `rules` of the job.'
cache_policy:
......
......@@ -11,6 +11,7 @@ include:
no_plan: true
auto_encryption: true
auto_encryption_passphrase: '947F23E4-B9FC-4E76-B7B4-1D35ECBE9B09'
rules: [{when: on_success}]
# For CI Terraform state cleanup
- component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/delete-state@$CI_COMMIT_SHA
......
......@@ -10,6 +10,7 @@ include:
root_dir: $TEST_GITLAB_TOFU_ROOT_DIR
state_name: $TEST_GITLAB_TOFU_STATE_NAME
no_plan: true
rules: [{when: on_success}]
- component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/apply@$CI_COMMIT_SHA
inputs:
......@@ -25,6 +26,7 @@ include:
auto_encryption: true
auto_encryption_passphrase: '947F23E4-B9FC-4E76-B7B4-1D35ECBE9B09'
auto_encryption_enable_migration_from_unencrypted: true
rules: [{when: on_success}]
- component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/apply@$CI_COMMIT_SHA
inputs:
......@@ -39,6 +41,7 @@ include:
no_plan: true
auto_encryption: true
auto_encryption_passphrase: '947F23E4-B9FC-4E76-B7B4-1D35ECBE9B09'
rules: [{when: on_success}]
# For CI Terraform state cleanup
- component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/delete-state@$CI_COMMIT_SHA
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment