REFACTOR(tekton): migrate from GitHub to Gitea

- Rename EventListener from github-listener to gitea-listener
- Rename TriggerBinding from github-push-binding to gitea-push-binding
- Update webhook secret to gitea-webhook-secret
- Rename credentials from github to gitea
- Update Ingress service name to el-gitea-listener
- Update Vault secret paths from github to gitea
This commit is contained in:
2026-01-10 22:25:24 +09:00
parent 7e8ae418fd
commit 942bda4ce8
6 changed files with 17 additions and 17 deletions

View File

@@ -4,7 +4,7 @@ kind: Kustomization
resources:
# Secrets
- secrets/zot-registry-secret.yaml
- secrets/github-credentials.yaml
- secrets/gitea-credentials.yaml
# Tasks
- tasks/git-clone.yaml
- tasks/buildah-build-push.yaml

View File

@@ -1,7 +1,7 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: github-credentials
name: gitea-credentials
namespace: tekton-pipelines
spec:
refreshInterval: 1h
@@ -9,14 +9,14 @@ spec:
kind: ClusterSecretStore
name: vault-backend
target:
name: github-credentials
name: gitea-credentials
creationPolicy: Owner
data:
- secretKey: username
remoteRef:
key: github
key: gitea
property: username
- secretKey: password
remoteRef:
key: github
key: gitea
property: password

View File

@@ -1,19 +1,19 @@
apiVersion: triggers.tekton.dev/v1beta1
kind: EventListener
metadata:
name: github-listener
name: gitea-listener
namespace: tekton-pipelines
spec:
serviceAccountName: tekton-triggers-sa
triggers:
- name: github-push-nextjs
- name: gitea-push-nextjs
interceptors:
- ref:
name: "github"
params:
- name: "secretRef"
value:
secretName: github-webhook-secret
secretName: gitea-webhook-secret
secretKey: webhook-secret
- name: "eventTypes"
value: ["push"]
@@ -32,17 +32,17 @@ spec:
- name: "filter"
value: "body.repository.name in ['jovies', 'jotion', 'jaejadle', 'portfolio', 'todo']"
bindings:
- ref: github-push-binding
- ref: gitea-push-binding
template:
ref: nextjs-build-template
- name: github-push-fastapi
- name: gitea-push-fastapi
interceptors:
- ref:
name: "github"
params:
- name: "secretRef"
value:
secretName: github-webhook-secret
secretName: gitea-webhook-secret
secretKey: webhook-secret
- name: "eventTypes"
value: ["push"]
@@ -61,7 +61,7 @@ spec:
- name: "filter"
value: "body.repository.name in ['joossam', 'mas']"
bindings:
- ref: github-push-binding
- ref: gitea-push-binding
template:
ref: fastapi-build-template
resources:

View File

@@ -19,6 +19,6 @@ spec:
pathType: Prefix
backend:
service:
name: el-github-listener
name: el-gitea-listener
port:
number: 8080

View File

@@ -1,7 +1,7 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: github-webhook-secret
name: gitea-webhook-secret
namespace: tekton-pipelines
spec:
refreshInterval: 1h
@@ -9,10 +9,10 @@ spec:
name: vault-backend
kind: ClusterSecretStore
target:
name: github-webhook-secret
name: gitea-webhook-secret
creationPolicy: Owner
data:
- secretKey: webhook-secret
remoteRef:
key: tekton
property: GITHUB_WEBHOOK_SECRET
property: GITEA_WEBHOOK_SECRET

View File

@@ -1,7 +1,7 @@
apiVersion: triggers.tekton.dev/v1beta1
kind: TriggerBinding
metadata:
name: github-push-binding
name: gitea-push-binding
namespace: tekton-pipelines
spec:
params: