You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by pi...@apache.org on 2025/11/12 14:25:40 UTC
(iggy) branch master updated: fix(ci): prevent pre-release Docker images from being tagged as latest (#2340)
This is an automated email from the ASF dual-hosted git repository.
piotr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/master by this push:
new 10daca4f6 fix(ci): prevent pre-release Docker images from being tagged as latest (#2340)
10daca4f6 is described below
commit 10daca4f6d6191153fc276c1d637d2c8f674a673
Author: Hubert Gruszecki <h....@gmail.com>
AuthorDate: Wed Nov 12 15:25:35 2025 +0100
fix(ci): prevent pre-release Docker images from being tagged as latest (#2340)
Previously, versions like "0.6.0-edge.2" were incorrectly tagged as "latest" on Docker Hub
because the condition only checked exact equality with "edge" string,
not whether the version contains pre-release identifiers.
---
.github/actions/utils/docker-buildx/action.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/actions/utils/docker-buildx/action.yml b/.github/actions/utils/docker-buildx/action.yml
index 26fda8c50..bffbcd4b8 100644
--- a/.github/actions/utils/docker-buildx/action.yml
+++ b/.github/actions/utils/docker-buildx/action.yml
@@ -137,7 +137,7 @@ runs:
images: ${{ steps.config.outputs.image }}
tags: |
type=raw,value=${{ inputs.version }}
- type=raw,value=latest,enable=${{ steps.config.outputs.should_push == 'true' && inputs.version != 'test' && inputs.version != 'edge' }}
+ type=raw,value=latest,enable=${{ steps.config.outputs.should_push == 'true' && inputs.version != 'test' && !contains(inputs.version, 'edge') && !contains(inputs.version, 'rc') && !contains(inputs.version, 'alpha') && !contains(inputs.version, 'beta') }}
type=sha,enable=${{ inputs.version == 'test' }}
- name: Determine platforms