From bb98006aa56da38ef50a9823270032ea82d2d4bd Mon Sep 17 00:00:00 2001 From: maxgfr <25312957+maxgfr@users.noreply.github.com> Date: Mon, 5 Oct 2026 12:12:48 +0200 Subject: [PATCH] ci: move codeindex:latest with every push to main The main image now also tags latest, so latest always matches the current main. Releases keep adding their version tags. --- .github/workflows/main-image.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main-image.yml b/.github/workflows/main-image.yml index b0d346f..33bf225 100644 --- a/.github/workflows/main-image.yml +++ b/.github/workflows/main-image.yml @@ -1,8 +1,9 @@ name: Main image -# Publishes ghcr.io/maxgfr/codeindex:main and :sha- for every commit that -# lands on `main`, release or not. `latest` and the version tags stay owned by -# the release job (release.yml), since consumers pin those. +# Publishes ghcr.io/maxgfr/codeindex:latest, :main and :sha- for every +# commit that lands on `main`, release or not, so `latest` is always the current +# main. Version tags stay owned by the release job (release.yml), since consumers +# pin those. # # Chained on the Release workflow rather than `on: push`: Release is also # started by `workflow_dispatch` (grammars-repin self-merges with GITHUB_TOKEN, @@ -56,6 +57,7 @@ jobs: --platform linux/amd64,linux/arm64 \ --build-arg VERSION="sha-${{ steps.sha.outputs.short }}" \ --push \ + -t ghcr.io/maxgfr/codeindex:latest \ -t ghcr.io/maxgfr/codeindex:main \ -t ghcr.io/maxgfr/codeindex:sha-${{ steps.sha.outputs.short }} \ .