mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-22 22:45:27 -05:00
Feature: stable tag for docker images #5551
Closed
opened 2025-11-02 06:28:39 -06:00 by GiteaMirror
·
15 comments
No Branch/Tag Specified
main
release/v1.25
release/v1.24
release/v1.23
release/v1.22
release/v1.21
release/v1.20
release/v1.19
release/v1.18
release/v1.17
release/v1.16
release/v1.15
release/v1.14
release/v1.13
release/v1.12
release/v1.11
release/v1.10
release/v1.9
release/v1.8
v1.25.3
v1.25.2
v1.25.1
v1.25.0
v1.24.7
v1.25.0-rc0
v1.26.0-dev
v1.24.6
v1.24.5
v1.24.4
v1.24.3
v1.24.2
v1.24.1
v1.24.0
v1.23.8
v1.24.0-rc0
v1.25.0-dev
v1.23.7
v1.23.6
v1.23.5
v1.23.4
v1.23.3
v1.23.2
v1.23.1
v1.23.0
v1.23.0-rc0
v1.24.0-dev
v1.22.6
v1.22.5
v1.22.4
v1.22.3
v1.22.2
v1.22.1
v1.22.0
v1.23.0-dev
v1.22.0-rc1
v1.21.11
v1.22.0-rc0
v1.21.10
v1.21.9
v1.21.8
v1.21.7
v1.21.6
v1.21.5
v1.21.4
v1.21.3
v1.21.2
v1.20.6
v1.21.1
v1.21.0
v1.21.0-rc2
v1.21.0-rc1
v1.20.5
v1.22.0-dev
v1.21.0-rc0
v1.20.4
v1.20.3
v1.20.2
v1.20.1
v1.20.0
v1.19.4
v1.21.0-dev
v1.20.0-rc2
v1.20.0-rc1
v1.20.0-rc0
v1.19.3
v1.19.2
v1.19.1
v1.19.0
v1.19.0-rc1
v1.20.0-dev
v1.19.0-rc0
v1.18.5
v1.18.4
v1.18.3
v1.18.2
v1.18.1
v1.18.0
v1.17.4
v1.18.0-rc1
v1.19.0-dev
v1.18.0-rc0
v1.17.3
v1.17.2
v1.17.1
v1.17.0
v1.17.0-rc2
v1.16.9
v1.17.0-rc1
v1.18.0-dev
v1.16.8
v1.16.7
v1.16.6
v1.16.5
v1.16.4
v1.16.3
v1.16.2
v1.16.1
v1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
v1.3.2
v1.3.1
v1.3.0
v1.3.0-rc2
v1.3.0-rc1
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.2.0-rc3
v1.2.0-rc2
v1.1.4
v1.2.0-rc1
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v0.9.99
Labels
Clear labels
$20
$250
$50
$500
backport/done
💎 Bounty
docs-update-needed
good first issue
hacktoberfest
issue/bounty
issue/confirmed
issue/critical
issue/duplicate
issue/needs-feedback
issue/not-a-bug
issue/regression
issue/stale
issue/workaround
lgtm/need 2
modifies/api
modifies/translation
outdated/backport/v1.18
outdated/theme/markdown
outdated/theme/timetracker
performance/bigrepo
performance/cpu
performance/memory
performance/speed
pr/breaking
proposal/accepted
proposal/rejected
pr/wip
pull-request
reviewed/wontfix
💰 Rewarded
skip-changelog
status/blocked
topic/accessibility
topic/api
topic/authentication
topic/build
topic/code-linting
topic/commit-signing
topic/content-rendering
topic/deployment
topic/distribution
topic/federation
topic/gitea-actions
topic/issues
topic/lfs
topic/mobile
topic/moderation
topic/packages
topic/pr
topic/projects
topic/repo
topic/repo-migration
topic/security
topic/theme
topic/ui
topic/ui-interaction
topic/ux
topic/webhooks
topic/wiki
type/bug
type/deprecation
type/docs
type/enhancement
type/feature
type/miscellaneous
type/proposal
type/question
type/refactoring
type/summary
type/testing
type/upstream
Mirrored from GitHub Pull Request
No Label
type/proposal
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/gitea#5551
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dschier-wtd on GitHub (Jun 15, 2020).
Description
Hi everybody,
it would be awesome, to see a tag "stable" in the docker registry, pointing to the latest stable release. As a user, this may ensure using the stable version, which is easily identifiable. This tag can also be used for several documentation, currently using outdated version numbers or latest as reference.
Background
At the moment, the "latest" tag seems to point to the latest build, some release candidates are present, etc. As far as I can see, there is already a tag "1", pointing to the latest stable release, adding a tag "stable" should be easily doable.
@pabloyoyoista commented on GitHub (Jun 21, 2020):
I can add one more reason for the importance of the "stable" tag. Currently, according to the documentation: For a stable release you can use
:1However, tag
:1is published with every v.1.* release. This has lead to a regression between tags v1.11.7, v1.12.0 and v1.11.8. What has happened is the following::1was still referring to v1.11.7:1became v1.12.0:1has been updated to point to v1.11.8.This behaviour is not ideal, but most importantly can lead to big issues for CI systems relying in tag
:1to be stable. If after updating gitea to v1.12.0, the CI catches the "new":1tag and gitea is "updated" from v1.12.0 to v1.11.8, it is expected that gitea will break due to new features and breaking changes introduced in v1.12.0@lunny commented on GitHub (Jun 22, 2020):
So we need a version comparable for :1 on drone configuration but not a new tag
stable? Two tags will make people confusing.@hweidner commented on GitHub (Jun 22, 2020):
I personally would recommend to use the following tags:
@sleeve commented on GitHub (Jun 22, 2020):
I agree with @hweidner. That seems like a more standard docker tag naming convention.
@pabloyoyoista commented on GitHub (Jun 22, 2020):
For me what is important is that the corresponding documented stable tag (as
:1is currently marked in the documentation) never jumps backwards as it happened yesterday. Any implemented solution should be fine@lunny commented on GitHub (Jun 22, 2020):
But as I know many fellows like to use
latestto try the newest version of gitea but notdev. They don't use:1which documented as a stable version.@lunny commented on GitHub (Jun 22, 2020):
Or we can follow the tags to keep compitable as before.
@dschier-wtd commented on GitHub (Jun 22, 2020):
For me, all of the suggested options would be fine. As long as I can point to a tag and will get the latest stable image for deployments in production environment :)
@lafriks commented on GitHub (Jun 22, 2020):
Stable seems redundant as I don't see 2 coming anytime soon and most probably it will be breaking enough to require changing label to
:2manually. We just need to figure way how to make drone not to override:1tag when publishing minor release for previous major verion@lunny commented on GitHub (Jun 23, 2020):
@lafriks Yes, that's the first step we need to do. I think we have to contribute to https://github.com/drone-plugins/drone-docker or create a fork.
@Ryonez commented on GitHub (Jun 24, 2020):
Glad to see this. Just popped in because I found out about the new release, and remembered I hadn't yet looked into the footer saying it was version 1.13 dev.
Fixed that now.
@lunny commented on GitHub (Jun 24, 2020):
see https://github.com/drone-plugins/drone-docker/issues/287
@tboerger commented on GitHub (Jun 24, 2020):
IMHO
:latest= master branch and:1= latest stable for v1.x.x and:2= latest stable for v2.x.x would be the best. Having a:stablewhich gets updated from v1.x.x to a breaking change v2.x.x (otherwise it wouldn't be a major version change) will lead to a lot trouble.For the docker plugin you can just generate a
.tagsfile within a step before the docker plugin which got a better logic to decide the tags that got to be pushed. The 1.11 release branch can just drop:1from the tags file while 1.12 release branch can keep:1until 1.13 gets released, or you could even query the releases API to check if there are more current minor versions.@sleeve commented on GitHub (Jun 24, 2020):
As a user that only wants a the most recent stable release. I should be able to just point to the
stabledocker image tag and automatically pickup the latest stable version. Whenever 2.0 is officially released thestabletag will point to it. I don't think a user should have to constantly investigate if it's "safe" or stable to update 1.x to 2.0. It should be up to the maintainers to determine that.I understand the issue that @tboerger brings up, that there may be breaking changes migrating from 1.x to 2.0 but hopefully those issues would be thoroughly tested and mostly ironed out before 2.0 is marked stable.
@techknowlogick commented on GitHub (Jun 24, 2020):
:1is our stable tag, however we've had a few releases of 1.11.x that happen at the same time as our 1.12.x releases, we've tried our hardest to ensure that they happen right before we make a tag for a newer version, however occasionally it doesn't always happen that we tag them in the correct order.I'm going to keep this open as we can add some protections to our CI to prevent overwriting newer versions with older versions (using @tboerger suggestion), however adding a new specific "stable" tag is something that has been discussed previously and for various reasons decided against.
I will lock this to maintainers as there is much discussion on this, however changing how tag names would be a massive breaking change with little to no added benefit (especially since we already offer a tag for latest stable version).