This commit is contained in:
2025-08-05 00:44:05 +09:00
parent 77e8f2f792
commit 61e5636f5a
4 changed files with 32 additions and 2 deletions

View File

@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: tekton-demo
image: harbor.icurfer.com/open/tekton-demo:0.1
image: harbor.icurfer.com/open/tekton-demo:latest
imagePullPolicy: Always
ports:
- containerPort: 80

View File

@ -11,4 +11,4 @@ spec:
- name: git-revision
value: $(body.ref)
- name: commit-sha
value: $(extensions.short_sha)
value: $(body.head_commit.id[0:7]) # ✅ 첫 7자 추출

15
sample-build/apply.py Normal file
View File

@ -0,0 +1,15 @@
#!/usr/bin/python3
import os
import sys
import subprocess
yaml_list = [
"02-task-build.yaml",
"05-pipeline-build.yaml",
"06-trigger-binding.yaml",
"07-trigger-template.yaml",
]
for yaml_file in yaml_list:
os.system(f"kubectl apply -f {yaml_file}")

15
sample-build/delete.py Normal file
View File

@ -0,0 +1,15 @@
#!/usr/bin/python3
import os
import sys
import subprocess
yaml_list = [
"02-task-build.yaml",
"05-pipeline-build.yaml",
"06-trigger-binding.yaml",
"07-trigger-template.yaml",
]
for yaml_file in yaml_list:
os.system(f"kubectl delete -f {yaml_file}")