We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2105f27 commit 96676ecCopy full SHA for 96676ec
1 file changed
.github/workflows/ansible-deploy.yml
@@ -2,7 +2,7 @@ name: Ansible Deployment
2
3
on:
4
push:
5
- branches: [master]
+ branches: [master, lab06]
6
paths:
7
- 'ansible/**'
8
- '!ansible/docs/**'
@@ -37,6 +37,9 @@ jobs:
37
- name: Install Ansible and ansible-lint
38
run: pip install ansible ansible-lint
39
40
+ - name: Create dummy vault password for lint
41
+ run: echo "dummy" > ansible/.vault_pass
42
+
43
- name: Run ansible-lint
44
run: |
45
cd ansible
@@ -46,7 +49,7 @@ jobs:
46
49
name: Deploy Application
47
50
needs: lint
48
51
runs-on: ubuntu-latest
- if: github.event_name == 'push'
52
+ if: github.event_name == 'push' && github.ref == 'refs/heads/master'
53
steps:
54
- name: Checkout repository
55
uses: actions/checkout@v4
0 commit comments