Skip to content

cli: engine-agnostic way of building images #907

@ivotron

Description

@ivotron

Proposal to add an image attribute for steps that can be used instead of the uses one, with the following:

steps:
- image:
    name: myregistry.io/myorg/myrepo
    tags:
    - tag1
    - tag2
    dockerfile: path/to/dockerfile/Dockerfile.foo
    context: ./
    build_args:
      ARG1: v14.2.9
      ARG2: another arg
    push: true
    import_cache: docker.io/another/img:tag
    export_cache: docker.io/an-image/toexport:tag # or the keyword 'inline'
# other step attributes as usual
  runs: [cmd]
  args: [--as, --usual]

The above is inspired by docker-compose's syntax. The goal is to have an engine-independent way of specifying how to build images.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions