Skip to content

Instantly share code, notes, and snippets.

View initcron's full-sized avatar

Gourav Shah initcron

View GitHub Profile
docker_bnp:
runs-on: ubuntu-latest
needs: package
steps:
- uses: actions/checkout@v3
- name: Log in to DockerHub
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ vars.DOCKERHUB_USERNAME }}" --password-stdin
- name: Build Docker image
package:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
test:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
job: [unit-test, sca, sbom]
name: Run ${{ matrix.job }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Compile sysfoo app
run: mvn compile
name: CI Pipeline
on:
push:
branches:
- main
pull_request:
jobs:
build:
@initcron
initcron / sysfoo_ci.yml
Created May 20, 2025 05:11
Complete CI Pipeline for Sysfoo App
name: CI Pipeline
on:
push:
branches:
- main
pull_request:
jobs:
build:
---
apiVersion: "autoscaling.k8s.io/v1"
kind: VerticalPodAutoscaler
metadata:
name: model
labels:
role: model
spec:
targetRef:
apiVersion: "apps/v1"
@initcron
initcron / fastapi-scaledobject.yaml
Created May 16, 2025 09:35
KEDA Autoscaler with Latency and CPU Utilization
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: fastapi-latency-autoscaler
namespace: default
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: model # update to your actual deployment name
name: Streamlit CI
on:
push:
paths:
- 'streamlit_app/**'
workflow_dispatch:
jobs:
build-and-push:
@initcron
initcron / mlops-pipeline.yml
Created May 15, 2025 04:00
Simplified MLOps Pipeline
# .github/workflows/mlops-pipeline.yml
name: MLOps Pipeline
on:
push:
branches: [ main ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ main ]