Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change docker tag logic #16421

Merged
merged 5 commits into from
Jul 14, 2021
Merged

Change docker tag logic #16421

merged 5 commits into from
Jul 14, 2021

Conversation

techknowlogick
Copy link
Member

@techknowlogick techknowlogick commented Jul 13, 2021

This PR changes the image tagged as :latest on docker hub to represent the :latest released version of Gitea.

  • :latest will now be mapped to latest tag on the 1.15 branch.
  • :dev will represent the latest build from the main branch.

Replace: #15889
Fixes #15622

thanks to @pat-s for the initial work on this PR :)

⚠️ BREAKING ⚠️

Previously the :latest docker tag would map to the latest build from main. Users who wish to use the absolute latest version of Gitea should migrate to use :dev and we would ask that at least some users do consider using the :dev tag if possible.

@techknowlogick techknowlogick changed the title Change docker logic Change docker tag logic Jul 13, 2021
@codecov-commenter

This comment has been minimized.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 13, 2021
@techknowlogick techknowlogick mentioned this pull request Jul 13, 2021
3 tasks
@techknowlogick techknowlogick added this to the 1.15.0 milestone Jul 13, 2021
@techknowlogick techknowlogick added the pr/breaking Merging this PR means builds will break. Needs a description what exactly breaks, and how to fix it! label Jul 13, 2021
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jul 14, 2021
Copy link
Contributor

@kdumontnu kdumontnu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This requires an update in gitea/docs/content/doc/installation/with-docker* docs, right?

docker/manifest.rootless.tmpl Outdated Show resolved Hide resolved
docker/manifest.rootless.tmpl Outdated Show resolved Hide resolved
.drone.yml Show resolved Hide resolved
@techknowlogick
Copy link
Member Author

@kdumontnu docs have been updated :)

Copy link
Contributor

@kdumontnu kdumontnu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 (fair warning: I'm not a docker expert, but it resolves the initial issues I saw)

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jul 14, 2021
@zeripath zeripath merged commit e180456 into go-gitea:main Jul 14, 2021
@kdumontnu
Copy link
Contributor

Wait, do the manifest/docker plugins have the logic to not tag latest on 1.14.5 if there is already a 1.15.0 release? I'm assuming we don't want previous minor releases to overtake the latest major release.

@lafriks
Copy link
Member

lafriks commented Jul 14, 2021

No it does not have

@techknowlogick techknowlogick deleted the docker-changes branch July 14, 2021 19:41
@pat-s
Copy link
Member

pat-s commented Jul 14, 2021

That was quick in the end 😅 👍

@sapk
Copy link
Member

sapk commented Jul 14, 2021

@kdumontnu it is a problem already existing previously and we always have to re-build a latest.

@lafriks lafriks added the type/changelog Adds the changelog for a new Gitea version label Jul 16, 2021
AbdulrhmnGhanem pushed a commit to kitspace/gitea that referenced this pull request Aug 10, 2021
* Change docker logic

* Apply suggestions from code review

Co-authored-by: Kyle D. <[email protected]>

* docs

Co-authored-by: 6543 <[email protected]>
Co-authored-by: Lauris BH <[email protected]>
Co-authored-by: Kyle D. <[email protected]>
@melroy89
Copy link
Contributor

melroy89 commented Sep 6, 2021

Thank god! This makes so much more sense now.

@go-gitea go-gitea locked as resolved and limited conversation to collaborators Sep 6, 2021
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Sep 6, 2021
@delvh delvh removed the type/changelog Adds the changelog for a new Gitea version label Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. pr/breaking Merging this PR means builds will break. Needs a description what exactly breaks, and how to fix it!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docker: re-evaluate tag heuristic (:latest, :dev)