tag test
This commit is contained in:
@ -5,15 +5,10 @@ metadata:
|
||||
name: docker-build-binding
|
||||
namespace: tekton-demo
|
||||
spec:
|
||||
interceptors:
|
||||
- cel:
|
||||
overlays:
|
||||
- key: short_sha
|
||||
expression: "body.head_commit.id.substring(0,7)"
|
||||
params:
|
||||
- name: git-url
|
||||
value: $(body.repository.clone_url)
|
||||
value: $(body.repository.git_http_url)
|
||||
- name: git-revision
|
||||
value: $(body.ref)
|
||||
value: $(body.head_commit.id)
|
||||
- name: commit-sha
|
||||
value: $(extensions.short_sha)
|
||||
value: $(body.head_commit.id)
|
@ -8,7 +8,13 @@ spec:
|
||||
serviceAccountName: tekton-build-sa
|
||||
triggers:
|
||||
- name: gitea-trigger
|
||||
interceptors:
|
||||
- cel:
|
||||
filter: "header.match('X-Gitea-Event', 'push')"
|
||||
overlays:
|
||||
- key: shortsha
|
||||
expression: "body.head_commit.id.truncate(7)"
|
||||
bindings:
|
||||
- ref: docker-build-binding # ✅ 수정
|
||||
- ref: docker-build-binding
|
||||
template:
|
||||
ref: docker-build-template # ✅ 수정
|
||||
ref: docker-build-template
|
Reference in New Issue
Block a user