You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)'
Activity
sapk commentedon 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 commentedon Jul 15, 2019
From what I have found :
gitea/modules/git/repo_test.go
Line 15 in edc94c7
gitea/modules/git/repo.go
Line 326 in edc94c7
I found two solutions:
techknowlogick commentedon Jul 15, 2019
@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 commentedon Jul 15, 2019
Found better by forcing refresh of master fetch by using
git fetch origin master:refs/heads/master
techknowlogick commentedon Jul 15, 2019
@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 commentedon Jul 15, 2019
Isn't https://github.com/go-gitea/gitea/blob/master/.drone.yml#L615 just missing tag ?sapk commentedon Jul 15, 2019
We also lost the tag 1 that is not updated anymore.
sapk commentedon Jul 15, 2019
We should maybe change to be similar to https://github.com/drone-plugins/drone-docker/blob/ebce953fc443371d79b5a019fcc9c1976f60a09a/.drone.yml#L99