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

Fix apply rule

parent 3292ec79
No related branches found
No related tags found
No related merge requests found
...@@ -95,7 +95,7 @@ variables: ...@@ -95,7 +95,7 @@ variables:
action: start action: start
resource_group: $TF_STATE_NAME resource_group: $TF_STATE_NAME
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $TF_AUTO_APPLY == "true" - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && "$TF_AUTO_APPLY" == "true"'
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: manual when: manual
...@@ -109,7 +109,7 @@ variables: ...@@ -109,7 +109,7 @@ variables:
action: stop action: stop
resource_group: $TF_STATE_NAME resource_group: $TF_STATE_NAME
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $TF_AUTO_DESTROY == "true" - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && "$TF_AUTO_DESTROY" == "true"'
- when: manual - when: manual
.opentofu:delete-state: .opentofu:delete-state:
......
...@@ -123,7 +123,7 @@ apply: ...@@ -123,7 +123,7 @@ apply:
action: start action: start
resource_group: $[[ inputs.state_name ]] resource_group: $[[ inputs.state_name ]]
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $[[ inputs.auto_apply ]] == "true" - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && "$[[ inputs.auto_apply ]]" == "true"'
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: manual when: manual
...@@ -137,7 +137,7 @@ destroy: ...@@ -137,7 +137,7 @@ destroy:
action: stop action: stop
resource_group: $[[ inputs.state_name ]] resource_group: $[[ inputs.state_name ]]
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $[[ inputs.auto_destroy ]] == "true" - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && "$[[ inputs.auto_destroy ]]" == "true"'
- when: manual - when: manual
delete-state: delete-state:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment