Initial commit: Kaniko CI/CD pipeline and Kustomize base

This commit is contained in:
Deep Koluguri 2026-05-21 23:00:54 -04:00
parent e9f34f3465
commit a9303b0f74
4 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,36 @@
name: Build Agents Runtime
on:
push:
branches:
- main
paths:
- 'src/**'
- 'Dockerfile'
- 'requirements.txt'
jobs:
build:
runs-on: ubuntu-latest
env:
DOCKER_HOST: tcp://172.17.0.1:2375
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and push (Kaniko)
run: |
SHORT_SHA="${GITHUB_SHA::7}"
IMAGE_TAG="192.168.8.250:5000/agents-runtime:latest"
JOB_CONTAINER=$(docker ps --format '{{.Names}}' | grep 'GITEA-ACTIONS-TASK' | head -1)
docker run --rm \
--volumes-from "$JOB_CONTAINER" \
gcr.io/kaniko-project/executor:latest \
--context=dir:///workspace/deepkoluguri/agents-runtime \
--dockerfile=Dockerfile \
--destination="${IMAGE_TAG}" \
--destination="192.168.8.250:5000/agents-runtime:${SHORT_SHA}" \
--insecure \
--skip-tls-verify

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .

3
k8s/kustomization.yaml Normal file
View File

@ -0,0 +1,3 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources: []

6
requirements.txt Normal file
View File

@ -0,0 +1,6 @@
# Common libraries for AI agents
requests
langchain
langchain-openai
temporalio
pydantic