concourse / concourse/docker-image-resource

Tag globs for checks

Open
#337 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi all! I have a use case where I only want the Docker image resource to pick up new versions if the tag matches some glob pattern. For example, only pick up tags like foo:release-xxx and ignore other tags like foo:dev-xxx. This would be similar to the paths source config for the git resource (see here). Is this a feature that's been discussed earlier?

Looking at the check command, it seems that we're fetching the manifest for the tag to get the tag's latest digest. Implementation wise, in order to support tag globbing I think we'll need to add a call to first fetch all tags for the image, apply the globbing, then fetch the manifest as normal using the latest tag.

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 check command and the existing manifest lookup described in the issue, then compare the git resource's paths source configuration. Review the Docker Registry tags API and determine how a glob pattern should be configured and applied before fetching the latest matching manifest. Done means matching tags are checked while nonmatching tags are ignored, with tests covering both cases.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.