Files
platform/tekton/ci-cd/manifests/pipelines/python-pipeline.yaml
Mayne0213 e1641cd3cf FEAT(ci): add ArgoCD Image Updater and CI/CD pipelines
- ArgoCD Image Updater for Zot registry polling
- Tekton Tasks: git-clone, buildah-build-push
- Pipelines: nextjs, fastapi, python
- ExternalSecrets for Zot and GitHub credentials
2026-01-07 14:41:53 +09:00

60 lines
1.5 KiB
YAML

apiVersion: tekton.dev/v1
kind: Pipeline
metadata:
name: python-build-deploy
namespace: tekton-pipelines
spec:
description: Build Python app (LangGraph/Chainlit) and push to Zot registry
params:
- name: git-url
description: Git repository URL
type: string
- name: git-revision
description: Git revision (branch/tag/sha)
type: string
default: main
- name: app-name
description: Application name
type: string
- name: context-dir
description: Docker build context directory
type: string
default: ./langgraph
workspaces:
- name: shared-workspace
description: Shared workspace for all tasks
- name: docker-credentials
description: Docker registry credentials
tasks:
- name: clone
taskRef:
name: git-clone
params:
- name: url
value: $(params.git-url)
- name: revision
value: $(params.git-revision)
- name: deleteExisting
value: "true"
workspaces:
- name: output
workspace: shared-workspace
- name: build-push
taskRef:
name: buildah-build-push
runAfter:
- clone
params:
- name: IMAGE
value: zot0213.kro.kr/$(params.app-name):$(params.git-revision)
- name: DOCKERFILE
value: ./Dockerfile
- name: CONTEXT
value: $(params.context-dir)
workspaces:
- name: source
workspace: shared-workspace
- name: dockerconfig
workspace: docker-credentials