Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support get "version.tag" in docker-image-resource #252

Closed
petzah opened this issue Dec 23, 2018 · 1 comment
Closed

Support get "version.tag" in docker-image-resource #252

petzah opened this issue Dec 23, 2018 · 1 comment

Comments

@petzah
Copy link

petzah commented Dec 23, 2018

Would it be possible to support "version" for get step for docker-image-resource. My scenario is:

  1. have docker-image with multiple tags
  2. build program for each tag

Something like this:

---
resources:
- name: myrepo
  type: git
  source:
    uri: https://github/petzah/myrepo.git
    branch: concourse

- name: myimage
  type: docker-image
  source:
    repository: petzah/myimage

jobs:

- name: buildprogram_tag1
  plan:
  - get: myrepo
    trigger: true
  - get: myimage-tag1
    trigger: true
    resource: myimage
    version: {'tag': tag1}
  - task: build-tag1
    file: myrepo/ci/concourse/tasks/build.yml
    image: myimage-tag1

- name: buildprogram_tag2
  plan:
  - get: myrepo
    trigger: true
  - get: myimage-tag2
    trigger: true
    resource: myimage
    version: {'tag': tag2}
  - task: build-tag2
    file: myrepo/ci/concourse/tasks/build.yml
    image: myimage-tag2`
@petzah petzah changed the title Support get "version" in docker-image-resource Support get "version.tag" in docker-image-resource Dec 23, 2018
@xtremerui
Copy link
Contributor

Same as #217, please refer to #217 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants