tag test
This commit is contained in:
@ -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
|
||||
|
@ -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
15
sample-build/apply.py
Normal 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
15
sample-build/delete.py
Normal 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}")
|
Reference in New Issue
Block a user