Add new infra architecture 6
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# Main CI Pipeline for Bakery-IA
|
||||
# This pipeline orchestrates the build, test, and deploy process
|
||||
# Includes: fetch -> detect changes -> test -> build -> update gitops
|
||||
# Supports environment-configurable base images for dev/prod flexibility
|
||||
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: Pipeline
|
||||
@@ -28,7 +29,7 @@ spec:
|
||||
description: Git revision/commit hash
|
||||
- name: registry
|
||||
type: string
|
||||
description: Container registry URL
|
||||
description: Container registry URL for pushing built images
|
||||
- name: git-branch
|
||||
type: string
|
||||
description: Target branch for GitOps updates
|
||||
@@ -41,6 +42,15 @@ spec:
|
||||
type: string
|
||||
description: Dry run mode - don't push changes
|
||||
default: "false"
|
||||
# Base image configuration for environment-specific builds
|
||||
- name: base-registry
|
||||
type: string
|
||||
description: "Base image registry URL (e.g., docker.io for prod, localhost:5000 for dev)"
|
||||
default: "{{ .Values.pipeline.build.baseRegistry }}"
|
||||
- name: python-image
|
||||
type: string
|
||||
description: "Python base image name and tag (e.g., python:3.11-slim for prod)"
|
||||
default: "{{ .Values.pipeline.build.pythonImage }}"
|
||||
|
||||
tasks:
|
||||
# Stage 1: Fetch source code
|
||||
@@ -107,6 +117,11 @@ spec:
|
||||
value: $(params.registry)
|
||||
- name: git-revision
|
||||
value: $(params.git-revision)
|
||||
# Environment-configurable base images
|
||||
- name: base-registry
|
||||
value: $(params.base-registry)
|
||||
- name: python-image
|
||||
value: $(params.python-image)
|
||||
|
||||
# Stage 5: Update GitOps manifests
|
||||
- name: update-gitops-manifests
|
||||
|
||||
Reference in New Issue
Block a user