Skip to content

Commit 0526774

Browse files
authored
Merge pull request #10 from stackhpc/zuul_ci
Add CR to CI/CD and rework secrets
2 parents 4ad8d85 + 9b54ec0 commit 0526774

File tree

4 files changed

+357
-272
lines changed

4 files changed

+357
-272
lines changed

.github/workflows/merge.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

0 commit comments

Comments
 (0)