chore(argocd): track main branch instead of prod for auto-sync on every commit
This commit is contained in:
@@ -9,11 +9,9 @@
|
|||||||
# `POST /v1/chat/completions` covers every model. See
|
# `POST /v1/chat/completions` covers every model. See
|
||||||
# docs/adr/ADR-0001-retire-kong-for-go-gateway.md in the frontend repo.
|
# docs/adr/ADR-0001-retire-kong-for-go-gateway.md in the frontend repo.
|
||||||
#
|
#
|
||||||
# UPDATED 2026-08-21: Tracks prod branch of homelab-frontend (not main).
|
# UPDATED 2026-08-22: Tracks main branch of homelab-frontend (auto-syncs on each push).
|
||||||
# Image promotion via kustomization:
|
# Image built on every main commit with tag <commit-sha>.
|
||||||
# cd k8s && kustomize edit set image forgejo.riotpiao.com/rock/api-gateway=forgejo.riotpiao.com/rock/api-gateway:<commit-sha>
|
# ArgoCD auto-pulls the latest image (live reconciliation ~3min).
|
||||||
# git add kustomization.yaml && git commit -m "chore(deploy): promote api-gateway to <commit-sha>"
|
|
||||||
# git push origin prod
|
|
||||||
#
|
#
|
||||||
# Two sources:
|
# Two sources:
|
||||||
# 1. rock/homelab-frontend on the in-cluster Forgejo (prod branch) — the gateway's own
|
# 1. rock/homelab-frontend on the in-cluster Forgejo (prod branch) — the gateway's own
|
||||||
@@ -43,7 +41,7 @@ spec:
|
|||||||
revisionHistoryLimit: 3
|
revisionHistoryLimit: 3
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://forgejo.riotpiao.com/rock/homelab-frontend.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab-frontend.git
|
||||||
targetRevision: prod
|
targetRevision: main
|
||||||
path: k8s
|
path: k8s
|
||||||
- repoURL: https://github.com/Riotpiaole/riotpiao.homelab.com.git
|
- repoURL: https://github.com/Riotpiaole/riotpiao.homelab.com.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# kmsvc-manage bootstrap — manages itself and its supporting services
|
# kmsvc-manage bootstrap — manages itself and its supporting services
|
||||||
# (Strimzi/Kafka, Redis, queue-operator, message-plane server) from
|
# (Strimzi/Kafka, Redis, queue-operator, message-plane server) from
|
||||||
# the kmsvc-manage repo's own k8s/argocd/ structure on the prod branch.
|
# the kmsvc-manage repo's own k8s/argocd/ structure on the main branch.
|
||||||
|
# Image built on every main commit, auto-deployed to sqs namespace.
|
||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
@@ -12,7 +13,7 @@ spec:
|
|||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/rock/kmsvc-manage.git
|
repoURL: https://forgejo.riotpiao.com/rock/kmsvc-manage.git
|
||||||
targetRevision: prod
|
targetRevision: main
|
||||||
path: k8s/argocd/apps
|
path: k8s/argocd/apps
|
||||||
directory:
|
directory:
|
||||||
recurse: false
|
recurse: false
|
||||||
|
|||||||
Reference in New Issue
Block a user