Skip to content

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

@techknowlogick

Description

Activity

added
topic/buildPR changes how Gitea is built, i.e. regarding Docker or the Makefile
on Jul 15, 2019
added this to the 1.9.0 milestone on Jul 15, 2019
sapk

sapk commented on Jul 15, 2019

@sapk
Member

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

sapk commented on Jul 15, 2019

@sapk
Member

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

techknowlogick commented on Jul 15, 2019

@techknowlogick
MemberAuthor

@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

sapk commented on Jul 15, 2019

@sapk
Member

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

techknowlogick

techknowlogick commented on Jul 15, 2019

@techknowlogick
MemberAuthor

@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

sapk commented on Jul 15, 2019

@sapk
Member
sapk

sapk commented on Jul 15, 2019

@sapk
Member

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

sapk

sapk commented on Jul 15, 2019

@sapk
Member
locked and limited conversation to collaborators on Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/buildPR changes how Gitea is built, i.e. regarding Docker or the Makefile

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @techknowlogick@sapk

      Issue actions

        Updated drone file doesn't build docker images for tags · Issue #7476 · go-gitea/gitea