feat(blog): register branch-based GitOps delivery

This commit is contained in:
dahyeon committed 2026-11-17 18:47:39 +09:00
1 parent ecfc86c72f
commit d6cbf1f23f
6 files changed
+75 -1

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: blog-ci
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "6"
spec:
project: ci
source:
repoURL: https://git.dahyeon.us/dahyeon/service-state.git
targetRevision: main
path: ci/blog
destination:
server: https://kubernetes.default.svc
namespace: tekton-ci
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- SkipDryRunOnMissingResource=true
+1 -1
View File
@@ -27,7 +27,7 @@ spec:
server: https://kubernetes.default.svc
namespace: "{{index .path.segments 1}}-prod"
templatePatch: |
{{- if or (eq (index .path.segments 1) "url-shortener") (eq (index .path.segments 1) "make-space") }}
{{- if or (eq (index .path.segments 1) "url-shortener") (eq (index .path.segments 1) "make-space") (eq (index .path.segments 1) "blog") }}
spec:
syncPolicy:
automated:
+10
View File
@@ -100,5 +100,15 @@ metadata:
---
apiVersion: v1
kind: Namespace
metadata:
name: blog-staging
---
apiVersion: v1
kind: Namespace
metadata:
name: blog-prod
---
apiVersion: v1
kind: Namespace
metadata:
name: platform
+6
View File
@@ -1,5 +1,11 @@
# Spec: Tekton CI/CD for lolympus-tournament-support
This document's original main-to-staging/manual-production contract is specific
to lolympus. Blog follows make-space: source `staging` and `prod` branches each
run a dedicated pipeline and both environments auto-sync. Blog registration is
`argocd/applications/blog-ci.yaml`; its complete delivery/secret contract is in
service-state `ci/blog/README.md` and `apps/blog/README.md`.
## Objective
Build a GitOps-native staging delivery path for the lolympus monorepo on the
@@ -23,3 +23,11 @@ spec:
resourceGroupName: dahyeon
hostedZoneName: dahyeon.us
environment: AzurePublicCloud
# rabbitmaus.com is outside the Azure DNS zone managed above.
# Public HTTP traffic for the ACME challenge must reach HAProxy.
- selector:
dnsNames:
- rabbitmaus.com
http01:
ingress:
ingressClassName: haproxy
@@ -81,3 +81,31 @@ subjects:
- kind: ServiceAccount
name: make-space-event-listener
namespace: tekton-ci
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: blog-tekton-eventlistener-interceptors
rules:
- apiGroups:
- triggers.tekton.dev
resources:
- clusterinterceptors
- clustertriggerbindings
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: blog-tekton-eventlistener-interceptors
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: blog-tekton-eventlistener-interceptors
subjects:
- kind: ServiceAccount
name: blog-event-listener
namespace: tekton-ci