From 9740334d2475ec648082c42f6abe32b3bb57bca6 Mon Sep 17 00:00:00 2001 From: Story Crater Bot <19826264+Riotpiaole@users.noreply.github.com> Date: Fri, 21 Aug 2026 20:56:47 -0700 Subject: [PATCH] ci(main): push latest tag on main commits, auto-deploy via kustomization --- .gitea/workflows/build-prod.yaml | 5 ++++- k8s/kustomization.yaml | 8 +++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build-prod.yaml b/.gitea/workflows/build-prod.yaml index ba1aef2..0357908 100644 --- a/.gitea/workflows/build-prod.yaml +++ b/.gitea/workflows/build-prod.yaml @@ -52,7 +52,10 @@ jobs: . - name: Push - run: docker push "${IMAGE}:${{ steps.sha.outputs.short_sha }}" + run: | + docker push "${IMAGE}:${{ steps.sha.outputs.short_sha }}" + docker tag "${IMAGE}:${{ steps.sha.outputs.short_sha }}" "${IMAGE}:latest" + docker push "${IMAGE}:latest" - name: Report digest run: | diff --git a/k8s/kustomization.yaml b/k8s/kustomization.yaml index 6bea1d2..0d9395f 100644 --- a/k8s/kustomization.yaml +++ b/k8s/kustomization.yaml @@ -11,13 +11,11 @@ resources: - configmap.yaml # The deployed image tag lives here and nowhere else. CI publishes -# forgejo.riotpiao.com/rock/api-gateway:; promoting a build is a -# one-line commit bumping newTag, which Argo then syncs (G7). -# -# kustomize edit set image forgejo.riotpiao.com/rock/api-gateway=: +# forgejo.riotpiao.com/rock/api-gateway: and tags it as :latest on main. +# ArgoCD auto-syncs when the latest image is available. images: - name: forgejo.riotpiao.com/rock/api-gateway - newTag: v0.1.1 + newTag: latest commonLabels: app: api-gateway