update pipeline
This commit is contained in:
@@ -35,7 +35,7 @@ plan:
|
||||
changes:
|
||||
- terraform.tf
|
||||
- terraform.tfvars
|
||||
- main.yml
|
||||
- tasks/main.yml
|
||||
|
||||
apply:
|
||||
stage: apply
|
||||
@@ -67,7 +67,7 @@ apply:
|
||||
changes:
|
||||
- terraform.tf
|
||||
- terraform.tfvars
|
||||
- main.yml
|
||||
- tasks/main.yml
|
||||
when: manual
|
||||
|
||||
ansible-apply:
|
||||
@@ -80,14 +80,14 @@ ansible-apply:
|
||||
script:
|
||||
- apt update && apt install ansible -y
|
||||
- ansible-galaxy install -r $CI_PROJECT_DIR/group_vars/requirements.yml
|
||||
- ansible-playbook $CI_PROJECT_DIR/main.yml
|
||||
- ansible-playbook $CI_PROJECT_DIR/tasks/main.yml
|
||||
needs:
|
||||
- apply
|
||||
only:
|
||||
changes:
|
||||
- terraform.tf
|
||||
- terraform.tfvars
|
||||
- main.yml
|
||||
- tasks/main.yml
|
||||
|
||||
destroy:
|
||||
stage: destroy
|
||||
@@ -115,7 +115,7 @@ destroy:
|
||||
changes:
|
||||
- terraform.tf
|
||||
- terraform.tfvars
|
||||
- main.yml
|
||||
- tasks/main.yml
|
||||
when: manual
|
||||
|
||||
ansible-update:
|
||||
@@ -125,7 +125,7 @@ ansible-update:
|
||||
script:
|
||||
- apt update && apt install ansible -y
|
||||
- ansible-galaxy install -r $CI_PROJECT_DIR/group_vars/requirements.yml
|
||||
- ansible-playbook $CI_PROJECT_DIR/update.yml
|
||||
- ansible-playbook $CI_PROJECT_DIR/tasks/update.yml
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == "schedule"
|
||||
when: always
|
||||
|
||||
Reference in New Issue
Block a user