Skip to content
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
23 changes: 20 additions & 3 deletions ci/github-actions.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ jobs:
docker stop test-${{ matrix.app.name }}
docker rm test-${{ matrix.app.name }}

# Security scanning
# Security scanning - Runs in parallel
security-scan:
name: Security Scan
runs-on: ubuntu-latest
needs: build-apps
needs: validate # Only needs code checkout/validation
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -101,11 +101,28 @@ jobs:
format: "sarif"
output: "trivy-python-results.sarif"

# Validate Kubernetes Manifests
lint-k8s:
name: Lint Kubernetes
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install kubeconform
run: |
wget https://github.com/yannh/kubeconform/releases/download/v0.6.3/kubeconform-linux-amd64.tar.gz
tar xf kubeconform-linux-amd64.tar.gz
sudo mv kubeconform /usr/local/bin/

- name: Validate Manifests
run: kubeconform -summary -output text k8s/

# Integration test
integration-test:
name: Integration Tests
runs-on: ubuntu-latest
needs: build-apps
needs: [build-apps, security-scan, lint-k8s]
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/gitops.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: GitOps Sync Simulation

on:
push:
paths:
- "k8s/**"
branches:
- main

jobs:
sync-check:
name: Simulate GitOps Sync
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Minikube (Simulation)
uses: medyagh/setup-minikube@master

- name: Calculate Diff
run: |
echo "Simulating ArgoCD/Flux sync..."
echo "Comparing git state vs cluster state..."
kubectl diff -f k8s/ || true
echo "Changes detected above would be applied automatically in a real GitOps setup."
Loading
Loading