-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (30 loc) · 820 Bytes
/
merge.yml
File metadata and controls
40 lines (30 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
name: Apply Zuul configuration
on:
push:
branches:
master
jobs:
deploy-zuul:
runs-on: self-hosted
env:
ANSIBLE_FORCE_COLOR: True
ANSIBLE_VAULT_PASSWORD_FILE: .vault.txt
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set Ansible Vault password file
run: |
echo ${{ secrets.ANSIBLE_VAULT_PASSWORD }} > $ANSIBLE_VAULT_PASSWORD_FILE
- name: Generate kubeconfig
env:
KUBE: ${{secrets.KUBE}}
OS_CLOUD: "smslab-stackhpc-ci"
run: |
mkdir -p ~/.kube
echo "$KUBE" > ~/.kube/config
- name: Run playbook
run: >
ansible-playbook -i ansible/inventory ansible/run.yml
- name: Remove credentials
run: |
rm -f ~/.kube/config .vault.txt