Skip to content

Commit

Permalink
gh-actions: CI action for Dex
Browse files Browse the repository at this point in the history
Create a GH Action that tests if:
1. Dex manifests can be applied in a KinD K8s 1.22 cluster
2. All pods can become ready

Signed-off-by: Kimonas Sotirchos <[email protected]>
  • Loading branch information
kimwnasptd committed Jul 2, 2022
1 parent e47ade9 commit 8280608
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/dex_kind_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build & Apply Dex manifests in KinD
on:
pull_request:
paths:
- common/dex/base/**

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install KinD
run: ./tests/gh-actions/install_kind.sh

- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster-1-22.yaml

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

- name: Install Istio
run: ./tests/gh-actions/install_istio.sh

- name: Build & Apply manifests
run: |
cd common/dex
kustomize build overlays/istio | kubectl apply -f -
kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout 180s

0 comments on commit 8280608

Please sign in to comment.