feat: CI/CD pipeline, ArgoCD app, sample deployment, Prometheus alerts #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Archnet CI/CD | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Lint Terraform | |
| uses: hashicorp/setup-terraform@v3 | |
| with: | |
| terraform_version: 1.8.0 | |
| - name: Terraform Init | |
| run: cd terraform && terraform init -backend=false | |
| - name: Terraform Validate | |
| run: cd terraform && terraform validate | |
| - name: Validate K8s Manifests | |
| uses: azure/k8s-lint@v1 | |
| with: | |
| manifests: argocd/ | |
| - name: Security Scan | |
| uses: aquasecurity/trivy-action@master | |
| with: | |
| scan-type: fs | |
| scan-ref: . | |
| severity: CRITICAL,HIGH | |
| notify: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Notify Success | |
| run: echo "Archnet pipeline passed" |