Skip to content

Updated drone file doesn't build docker images for tags #7476

New issue

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

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

Already on GitHub? # to your account

Closed
techknowlogick opened this issue Jul 15, 2019 · 8 comments · Fixed by #7480
Closed

Updated drone file doesn't build docker images for tags #7476

techknowlogick opened this issue Jul 15, 2019 · 8 comments · Fixed by #7480
Labels
topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile
Milestone

Comments

@techknowlogick
Copy link
Member

please see https://drone.gitea.io/go-gitea/gitea/10774/4/1

@techknowlogick techknowlogick added the topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile label Jul 15, 2019
@techknowlogick techknowlogick added this to the 1.9.0 milestone Jul 15, 2019
@sapk
Copy link
Member

sapk commented Jul 15, 2019

I don't fully understand the problem. Is it related to https://drone.gitea.io/go-gitea/gitea/10772/1/11 that failed to find the last commit time on tag ?

@sapk
Copy link
Member

sapk commented Jul 15, 2019

From what I have found :

I found two solutions:

  • checkout master before returning to tag (generate /refs/heads/master)
  • don't define /refs/heads path (but that could change how gitea calculate on repo) git for-each-ref --sort=-committerdate --count 1 --format='%(committerdate)'

@techknowlogick
Copy link
Member Author

@sapk specifically this build step https://github.com/go-gitea/gitea/blob/master/.drone.yml#L633 is what should be building images for tags and is not. The conditional in old drone format didn't specify branch. Perhaps, this should be changed to use refs conditionals instead

@sapk
Copy link
Member

sapk commented Jul 15, 2019

Found better by forcing refresh of master fetch by using git fetch origin master:refs/heads/master

@techknowlogick
Copy link
Member Author

@sapk that failing test you linked has been backported and solved, this issue is about image not building (which is in a different pipeline)

@sapk
Copy link
Member

sapk commented Jul 15, 2019

@sapk
Copy link
Member

sapk commented Jul 15, 2019

We also lost the tag 1 that is not updated anymore.

@sapk
Copy link
Member

sapk commented Jul 15, 2019

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants