Skip to content

Zuul CI deployment #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: On Pull Request

on:
workflow_dispatch:
pull_request:
types: [opened, reopened]

jobs:
deploy-zuul:

runs-on: self-hosted

env:
ANSIBLE_FORCE_COLOR: True

steps:
- uses: actions/checkout@v4

- 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

1 change: 1 addition & 0 deletions ansible/inventory/hosts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
localhost ansible_connection=local
12 changes: 12 additions & 0 deletions ansible/run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
- name: Ensure Zuul is configured
gather_facts: false
hosts: localhost

tasks:
- name: Ensure Zuul namespace is created
kubernetes.core.k8s:
name: zuul
api_version: v1
kind: Namespace
state: present
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kubernetes