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

Pass Tag name to docker-image

Open myles-mcdonnell opened this issue 6 years ago • 2 comments

Not really an issue as such but I'm not sure how I can pass the Tag name of an annotated tag that triggers a build to the docker-image put section of by build config?

https://stackoverflow.com/questions/48506510/concourse-git-resource-accessing-a-git-tag-to-use-on-a-docker-image-put

myles-mcdonnell avatar Jan 30 '18 09:01 myles-mcdonnell

+1

kinduff avatar Aug 16 '18 22:08 kinduff

Interested too. I have an open source project I publish at docker hub, where I have an automatic build that picks up any new git tags, builds the image and subsequently tags it with it (as well as latest). Docker hub's build system is pretty simple though and my needs have expanded beyond merely docker build, hence I want to move build and publishing to docker hub's registry to a concourse set up I have already running.

I can't find any obvious way of declaring a pipeline where the last step is a conditional push to a docker image resource when HEAD has a tag, captures this git tag, and builds and pushes to the docker registry with this tag and latest. I can script this, but it beats the point of declarative pipelines.

luispabon avatar Dec 04 '18 22:12 luispabon