File tree Expand file tree Collapse file tree 4 files changed +357
-272
lines changed Expand file tree Collapse file tree 4 files changed +357
-272
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Apply Zuul configuration
3+
4+ on :
5+ push :
6+ branches :
7+ master
8+
9+ jobs :
10+ deploy-zuul :
11+
12+ runs-on : self-hosted
13+
14+ env :
15+ ANSIBLE_FORCE_COLOR : True
16+ ANSIBLE_VAULT_PASSWORD_FILE : .vault.txt
17+
18+ steps :
19+ - uses : actions/checkout@v4
20+
21+ - name : Set Ansible Vault password file
22+ run : |
23+ echo ${{ secrets.ANSIBLE_VAULT_PASSWORD }} > $ANSIBLE_VAULT_PASSWORD_FILE
24+
25+ - name : Generate kubeconfig
26+ env :
27+ KUBE : ${{secrets.KUBE}}
28+ OS_CLOUD : " smslab-stackhpc-ci"
29+ run : |
30+ mkdir -p ~/.kube
31+ echo "$KUBE" > ~/.kube/config
32+
33+ - name : Run playbook
34+ run : >
35+ ansible-playbook -i ansible/inventory ansible/run.yml
36+
37+ - name : Remove credentials
38+ run : |
39+ rm -f ~/.kube/config .vault.txt
40+
Original file line number Diff line number Diff line change 1+ ---
2+ zuul_operator_cr: |
3+ apiVersion: operator.zuul-ci.org/v1alpha2
4+ kind: Zuul
5+ metadata:
6+ name: zuul
7+ spec:
8+ executor:
9+ count: 1
10+ sshkey:
11+ secretName: zuul-sshkey
12+ scheduler:
13+ config:
14+ secretName: zuul-tenant-config
15+ launcher:
16+ config:
17+ secretName: zuul-nodepool-config
18+ web:
19+ count: 1
20+ connections:
21+ github:
22+ driver: github
23+ secretName: zuul-github
24+ server: github.com
25+ opendev:
26+ driver: git
27+ baseurl: https://opendev.org
28+ stackhpc:
29+ driver: git
30+ baseurl: https://github.com/stackhpc
31+ canonical_hostname: github.stackhpc.com
32+ externalConfig:
33+ openstack:
34+ secretName: zuul-clouds-yaml
You can’t perform that action at this time.
0 commit comments