mbialon / concourse-docker-manifest-resource

Concourse Docker Manifest Resource

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Concourse Docker Manifest Resource

Travis CI

Creates Docker manifests.

Source Configuration

  • repository: Required. The name of the repository, e.g. mbialon/concourse-docker-manifest-resource.

  • tag: The tag. Can be overwritten by the tag file.

  • username: The username to user when authentidcating.

  • password: The password to use when authentidcating.

Behavior

out: Push the manifest.

Create, annotate, and push the manifest. The resulting version is the manifest's digest.

Parameters

  • tag_file: manifest tag file

  • manifests: an array of:

    • arch: architecture

    • variant: optional architecture variant, e.g. arch: arm, variant: v7

    • os: operating system

    • tag_file: a tag file

    • digest_file: a tag file (alternate to tag_file, useful to reference a docker-image-resource digest file)

Example

resource_types:
- name: docker-manifest
  type: docker-image
  source:
    repository: mbialon/concourse-docker-manifest-resource

resources:
- name: image-manifest
  type: docker-manifest
  source:
    repository: mbialon/image
    username: ((docker.username))
    password: ((docker.password))

jobs:
- name: build manifest
  plan:
  - put: image-manifest
      params:
        tag_file: version/version
        manifests:
        - arch: amd64
          os: linux
          tag_file: build/tag

- name: build manifest from existing image
  plan:
  - get: some-image-amd64
  - get: some-image-arm64
  - put: image-manifest
      params:
        tag_file: version/version
        manifests:
        - arch: amd64
          os: linux
          digest_file: some-image-amd64/digest
        - arch: arm64
          os: linux
          digest_file: some-image-arm64/digest
        - arch: arm
          variant: v7
          os: linux
          digest_file: some-image-armhf/digest

About

Concourse Docker Manifest Resource

License:Apache License 2.0


Languages

Language:Go 93.7%Language:Dockerfile 6.3%