Fix resources isues 30
This commit is contained in:
@@ -158,7 +158,8 @@ spec:
|
||||
--build-arg="BASE_REGISTRY=$(params.base-registry)" \
|
||||
--build-arg="PYTHON_IMAGE=$(params.python-image)" \
|
||||
--cache=true \
|
||||
--cache-repo="$(params.registry)/cache"
|
||||
--cache-repo="$(params.registry)/cache" \
|
||||
--cache-ttl=168h
|
||||
|
||||
echo "Successfully built: $(params.registry)/$service:$(params.git-revision)"
|
||||
fi
|
||||
|
||||
@@ -41,6 +41,9 @@ spec:
|
||||
# Track the source commit
|
||||
bakery-ia.io/git-revision: $(tt.params.git-revision)
|
||||
bakery-ia.io/git-branch: $(tt.params.git-branch)
|
||||
# Automatic cleanup: delete PipelineRun after completion
|
||||
# Default: 1 hour (3600 seconds). Configure via values.yaml
|
||||
tekton.dev/pipelinerunDeletionPropagation: "foreground"
|
||||
spec:
|
||||
pipelineRef:
|
||||
name: bakery-ia-ci
|
||||
|
||||
@@ -93,6 +93,20 @@ serviceAccounts:
|
||||
pipeline:
|
||||
name: "tekton-pipeline-sa"
|
||||
|
||||
# Cleanup and retention configuration
|
||||
cleanup:
|
||||
# PipelineRun retention (requires Tekton Pipelines >= v0.52.0)
|
||||
# Set to 0 to disable automatic cleanup
|
||||
pipelineRuns:
|
||||
# Keep last N successful PipelineRuns per Pipeline
|
||||
keepSuccessful: 3
|
||||
# Keep last N failed PipelineRuns per Pipeline
|
||||
keepFailed: 5
|
||||
# TaskRun retention
|
||||
taskRuns:
|
||||
keepSuccessful: 3
|
||||
keepFailed: 5
|
||||
|
||||
# Labels to apply to resources
|
||||
labels:
|
||||
app:
|
||||
|
||||
Reference in New Issue
Block a user