Describe the bug
Currently every release pipeline (both stable and patch version) pushes latest tag docker images. This can cause issue and confusion.
e.g: Say we have latest release branch 2.9.x and we release patch release for older Loki 2.8.x. Now latest tag points to some 2.8.x version instead of 2.9.x.
pulling latest
docker pull grafana/loki ─╯
Using default tag: latest
latest: Pulling from grafana/loki
Digest: sha256:fc2462a2a0c18928e9ddd6070bdbed34a7172bffd2a6b8d1191d5a15c32f6dd7
Status: Image is up to date for grafana/loki:latest
docker.io/grafana/loki:latest
But it's older.
docker run --rm -it grafana/loki --version ─╯
loki, version 2.8.5 (branch: HEAD, revision: 03cd6c82b)
build user: root@bdb1fa196fd7
build date: 2023-09-14T17:17:19Z
go version: go1.20.7
platform: linux/amd64
Expected behavior
When tagging latest, tag only if it's from current latest release branch (e.g: in this case 2.9.x). For every other older branch releases, do not tag latest (e.g: in this case 2.8.x or older)
Describe the bug Currently every release pipeline (both stable and patch version) pushes
latest
tag docker images. This can cause issue and confusion.e.g: Say we have latest release branch 2.9.x and we release patch release for older Loki 2.8.x. Now
latest
tag points to some2.8.x
version instead of2.9.x
.pulling
latest
But it's older.
To Reproduce You can look into any older Loki patch releases in Docker hub. https://hub.docker.com/r/grafana/loki/tags?page=1&name=latest
Expected behavior When tagging
latest
, tag only if it's from current latest release branch (e.g: in this case 2.9.x). For every other older branch releases, do not taglatest
(e.g: in this case 2.8.x or older)Environment:
Screenshots, Promtail config, or terminal output