ci(main): push latest tag on main commits, auto-deploy via kustomization
Build and push / Build and push image (push) Successful in 29s
Build / Build and push image (push) Successful in 27s
CI / Test, vet, build (push) Successful in 2m17s

This commit is contained in:
Story Crater Bot
2026-08-21 20:56:47 -07:00
parent 0f2cd7565a
commit 9740334d24
2 changed files with 7 additions and 6 deletions
+4 -1
View File
@@ -52,7 +52,10 @@ jobs:
. .
- name: Push - 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 - name: Report digest
run: | run: |
+3 -5
View File
@@ -11,13 +11,11 @@ resources:
- configmap.yaml - configmap.yaml
# The deployed image tag lives here and nowhere else. CI publishes # The deployed image tag lives here and nowhere else. CI publishes
# forgejo.riotpiao.com/rock/api-gateway:<commit-sha>; promoting a build is a # forgejo.riotpiao.com/rock/api-gateway:<commit-sha> and tags it as :latest on main.
# one-line commit bumping newTag, which Argo then syncs (G7). # ArgoCD auto-syncs when the latest image is available.
#
# kustomize edit set image forgejo.riotpiao.com/rock/api-gateway=:<sha>
images: images:
- name: forgejo.riotpiao.com/rock/api-gateway - name: forgejo.riotpiao.com/rock/api-gateway
newTag: v0.1.1 newTag: latest
commonLabels: commonLabels:
app: api-gateway app: api-gateway