concourse / concourse/docker-image-resource

Unable to specify tag constant

Open
#233 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
162
Forks
250
PR merge metrics
No merged PRs in 30d

Description

I am unable to specify a tag constant and there seems to be no way of doing it without specifying a file. I get errors such as:

 tag file 'master' does not exist

if I use the following syntax

 - put: my-docker-image
    params:
       tag: master
       build: myapi
       build_args:
            foo: bar

I need to be able to able to tag an image with a specific tag, but having to create a file for this purpose adds extra complexity to the configuration.

Is there a way to tag a put step without creating using a file? Or do I have specify this in a different location?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the put-step configuration and tag behavior shown in the issue, then locate the docker-image resource's handling of tag values and its existing tests or documentation. Implement constant tags without requiring a file, and verify that the shown configuration tags the image as requested while existing tag-file behavior still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.