concourse / docker-image-resource

a resource for docker images
Apache License 2.0
166 stars 259 forks source link

Docker image tag `get` stage override #350

Open sfuerte opened 1 year ago

sfuerte commented 1 year ago

Is it possible to add support for the subject feature?

Right now an image's tag can be supplied for the source only, i.e. once for the whole pipeline:

  - name: my_image
    type: docker-image
    icon: docker
    source:
      repository: <some registry>
      tag: X.Y.Z
      <<: *repository_credentials

The idea (and necessity) to have it overridden per task, e.g. per environment used (dev / stage / prod):


  - name: build-dev
    plan:
      - get: my_image
        params:
          save: true
          tag: "X.Y.Z+1"  # tag override here

as a bonus, with such override it can be dynamic via load_vars step from a shared config source.