Update .gitlab-ci.yml

This commit is contained in:
2022-11-05 11:36:11 +00:00
parent 88ddebd0b9
commit 0790fd5877

View File

@@ -37,7 +37,8 @@ k3s:
- if: '$CI_COMMIT_BRANCH == "main"'
changes:
paths:
- 'terraform/*'
- 'terraform/*'
- 'ansible/*'
when: always
- when: never
@@ -51,10 +52,15 @@ k3s-ansible:
extends: .ansible_apply
before_script:
- cat $ansible > $WORKDIR/ansible
#rules:
# - if: '$CI_COMMIT_BRANCH == "main"'
# - changes:
# - 'terraform/*'
needs: ["k3s"]
rules:
- if: '$CI_COMMIT_BRANCH == "main"'
changes:
paths:
- 'terraform/*'
- 'ansible/*'
when: always
- when: never