Skip to content

Commit 4fea6b7

Browse files
committed
Zuul CI deployment
1 parent 69dec16 commit 4fea6b7

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

.github/workflows/pr.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: On Pull Request
3+
4+
on:
5+
workflow_dispatch:
6+
pull_request:
7+
types: [opened, reopened]
8+
9+
jobs:
10+
run-ansible:
11+
12+
runs-on: ubuntu-latest
13+
14+
env:
15+
ANSIBLE_FORCE_COLOR: True
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Run playbook
21+
run: >
22+
ansible-playbook -i ansible/inventory ansible/run.yml
23+

ansible/inventory/hosts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
localhost ansible_connection=local

ansible/run.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
- name: Ensure Zuul is configured
3+
gather_facts: false
4+
hosts: localhost
5+
6+
tasks:
7+
- name: Ensure Zuul namespace is created
8+
kubernetes.core.k8s:
9+
name: zuul
10+
api_version: v1
11+
kind: Namespace
12+
state: present

0 commit comments

Comments
 (0)