Skip to content

Commit 2855d57

Browse files
authored
chore: rerun CI on tags (#19022)
Tags would skip CI if that specific commit was built in the past. This PR changes it so that we get correctly versioned Docker images.
2 parents 639a0dd + 48e235b commit 2855d57

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/ci3.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ function check_cache {
9898
local cache_name="ci-success-${CI_MODE}-${tree_hash}.tar.gz"
9999
# Export for use by ci3-post.sh
100100
echo "CI_CACHE_NAME=$cache_name" >> $GITHUB_ENV
101+
# Skip cache for release builds - they must always produce versioned images
102+
if [ "$CI_MODE" == "release" ]; then
103+
echo "Cache disabled for release builds"
104+
return
105+
fi
101106
if has_label "no-cache"; then
102107
export NO_CACHE=1
103108
echo "NO_CACHE=$NO_CACHE" >> $GITHUB_ENV

0 commit comments

Comments
 (0)