From 895bf7a3c7ade6ddec3bc869ad05734a4d3aa025 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Mon, 26 May 2025 09:31:34 +0200 Subject: [PATCH] CI: Add Contour deployment --- .github/workflows/pr.yml | 3 +-- ansible/run.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 6165d33..b666742 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -4,7 +4,6 @@ name: On Pull Request on: workflow_dispatch: pull_request: - types: [opened, reopened] jobs: deploy-zuul: @@ -36,7 +35,7 @@ jobs: - name: Run playbook run: > - ansible-playbook -i ansible/inventory ansible/run.yml --check --diff + ansible-playbook -i ansible/inventory ansible/run.yml --check --diff -vvv - name: Remove credentials run: | diff --git a/ansible/run.yml b/ansible/run.yml index 05bbf7a..093ac0f 100644 --- a/ansible/run.yml +++ b/ansible/run.yml @@ -56,6 +56,25 @@ namespace: "zuul" state: present + - name: Download Contour CRDs + ansible.builtin.get_url: + url: https://projectcontour.io/quickstart/contour.yaml + dest: /tmp/ansible_zuul_contour.yaml + mode: '0664' + check_mode: false + + - name: Ensure Contour namespace + kubernetes.core.k8s: + name: projectcontour + api_version: v1 + kind: Namespace + state: present + + - name: Ensure Contour CRDs + kubernetes.core.k8s: + src: /tmp/ansible_zuul_contour.yaml + state: present + - name: Ensure Gateway API CRDs kubernetes.core.k8s: namespace: "zuul"