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

Docker footer show the commit instead of tag version in 1.5.0 #4782

Closed
7 tasks
EnricoFerro opened this issue Aug 24, 2018 · 15 comments
Closed
7 tasks

Docker footer show the commit instead of tag version in 1.5.0 #4782

EnricoFerro opened this issue Aug 24, 2018 · 15 comments
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile

Comments

@EnricoFerro
Copy link
Contributor

EnricoFerro commented Aug 24, 2018

  • Gitea version (or commit ref): 1.5
  • Git version:
  • Operating system: Docker
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

In Docker in the footer of the page the displayed version is the commit instead of the version of the tag.
I see this description for the version 1.5.0 / 1.5.0-rc2 / 1.5.0-rc1 / 1.5.0-dev.

The version 1.4.3 show the correct version ( 1.4.3 )
...

Screenshots

Version 1.5.0:
image

Version 1.4.3:
image

@lafriks
Copy link
Member

lafriks commented Aug 24, 2018

Are you using tag 1.5 or 1.5.0?

@EnricoFerro
Copy link
Contributor Author

EnricoFerro commented Aug 24, 2018

I use this docker-compose.yml:

version: "2"

networks:
        gitea:
            external: false
services:
    gitea:
       container_name: gitea
       image: gitea/gitea:1.5.0
       environment:
           - USER_UID=112
           - USER_GID=117
       restart: always
       networks:
           - gitea
       volumes:
           - /home/git/gitea:/data
       ports:
           - "127.0.0.1:3000:3000"
           - "127.0.0.1:10022:22"

and launch:

sudo docker-compose up -d --build

@lunny lunny added the topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile label Aug 24, 2018
@lafriks
Copy link
Member

lafriks commented Aug 24, 2018

Hmm, strange. Must be something to do with that standard tag drone feature

@namadori
Copy link

namadori commented Dec 3, 2018

It seems the fix doesn't work. On 1.6.0 the footer says "0da8bc9".

@jojomi
Copy link

jojomi commented Jan 24, 2019

Still only the hash in 1.7.0 (3fa49f3). Would be nice to see this fixed, so successful updates can be verified more easily :).

@stale
Copy link

stale bot commented Mar 25, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Mar 25, 2019
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Mar 25, 2019
@stale stale bot removed the issue/stale label Mar 25, 2019
@TBK
Copy link

TBK commented Apr 21, 2019

Still an issue with 1.8.0.

@lunny
Copy link
Member

lunny commented Apr 22, 2019

Did you get gitea binary from the https://dl.gitea.io ? One of my instance display correctly.
image

@webjoel
Copy link
Contributor

webjoel commented Apr 22, 2019

@lunny Problem is only in Docker..

@TBK
Copy link

TBK commented Apr 22, 2019

As @webjoel said it is a problem with the Docker build.

@segevfiner
Copy link
Contributor

I think tags: true doesn't actually exist in Drone, and you need to do git fetch --tags by yourself as a separate step to get the tags. See Drone - --tags

@TBK
Copy link

TBK commented Apr 30, 2019

You can use DRONE_TAG to get the git tag in some circumstances - https://docs.drone.io/reference/environ/drone-tag/

@sapk
Copy link
Member

sapk commented Apr 30, 2019

The problem is that the variable DRONE_TAG and DRONE_BRANCH that are used in the Makefile are not forwarded to the docker context and so the the build inside docker doesn't take them into account.

@zeripath
Copy link
Contributor

zeripath commented May 3, 2019

Fixed by #6836 and its backport #6839

@zeripath zeripath closed this as completed May 3, 2019
@zeripath
Copy link
Contributor

zeripath commented May 3, 2019

Hmm actually this one might not be fixed - it depends on when we make the tag. If we tag after building then that's the problem... it should be fixed but we should check again next tag.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile
Projects
None yet
Development

No branches or pull requests

10 participants