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: resources:
# Secrets # Secrets
- secrets/zot-registry-secret.yaml - secrets/zot-registry-secret.yaml
- secrets/github-credentials.yaml - secrets/gitea-credentials.yaml
# Tasks # Tasks
- tasks/git-clone.yaml - tasks/git-clone.yaml
- tasks/buildah-build-push.yaml - tasks/buildah-build-push.yaml

View File

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

View File

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

View File

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

View File

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

View File

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