git-resource
git-resource copied to clipboard
Pass Tag name to docker-image
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
+1
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.