git-resource icon indicating copy to clipboard operation
git-resource copied to clipboard

Make resource aware of new release tags

Open gdenn opened this issue 8 years ago • 4 comments

Feature Request

I am currently working on a pipeline that uses Concourse to update Cloud Foundry releases.

Each release has an official repository e.g. uaa https://github.com/cloudfoundry/uaa-release . When a new release is created they always tag it on github with a version name e.g. v1.2.3.

My pipeline shall recognise new release versions by triggering the release update job when a new tag is created on the repository.

If i am not mistaken the current implementation of the git-resource only recognises changes on the commit head version. As git tags are not specific to a branch or change the head version of a branch at all, new tags can't be used to trigger jobs.

As a concourse user i would like to have a additional option/flag watch_tags which trigger jobs attached to the git-resource only if new tags are created on the git repository.

gdenn avatar Aug 28 '17 13:08 gdenn

We are making an uber issue for this. We have a lot of requests for tags, which doesn't work in the current flow of a git resource that watches a specific tree. I'd like to post the wants there, for now.

jtarchie avatar Aug 30 '17 20:08 jtarchie

@gdenn Did you find any good way to workaround the lack of that feature? I would be interested to learn about it as I'm dealing with the same problem.

prein avatar Aug 10 '18 13:08 prein

@prein I am currently working with the Github Release Resource https://github.com/concourse/github-release-resource.

With this resource you can trigger upon latest Release version of the repo and receive the code as a tarball. You just have to extract the tarball and your ready to go.

To have this feature in the git-resource would be very nice nevertheless.

gdenn avatar Aug 17 '18 08:08 gdenn

linked to https://github.com/concourse/git-resource/pull/223

talset avatar Oct 31 '18 10:10 talset