Manifest

by drone-plugins

This plugin can push manifests for multi-arch Docker images. The below pipeline configuration demonstrates simple usage:

pipeline:
  manifest:
    image: plugins/manifest
    username: kevinbacon
    password: pa55word
    target: foo/bar:v1.0.0
    template: foo/bar:v1.0.0-OS-ARCH
    platforms:
      - linux/amd64
      - linux/arm
      - linux/arm64

Manifests from template:

pipeline:
  manifest:
    image: plugins/manifest
    username: kevinbacon
    password: pa55word
-   target: foo/bar:v1.0.0
-   template: foo/bar:v1.0.0-OS-ARCH
-   platforms:
-     - linux/amd64
-     - linux/arm
-     - linux/arm64
+   spec: manifest.tmpl

Ignore missing images:

pipeline:
  manifest:
    image: plugins/manifest
    username: kevinbacon
    password: pa55word
    target: foo/bar:v1.0.0
    template: foo/bar:v1.0.0-OS-ARCH
    platforms:
      - linux/amd64
      - linux/arm
      - linux/arm64
+   ignore_missing: true

Example configuration using secrets:

pipeline:
  manifest:
    image: plugins/manifest
-   username: kevinbacon
-   password: pa55word
+   secrets: [ manifest_username, manifest_password ]
    target: foo/bar:v1.0.0
    template: foo/bar:v1.0.0-OS-ARCH
    platforms:
      - linux/amd64
      - linux/arm
      - linux/arm64

Secret Reference

manifest_username, docker_username
Username for DockerHub authentication
manifest_password, docker_password
Password for DockerHub authentication

Parameter Reference

username
Username for DockerHub authentication
password
Password for DockerHub authentication
platforms
List of platforms in format OS/ARCH
target
Target image for manifest
template
Template for manifest sources, OS and ARCH are replaced
spec
Path to a manifest specification file
ignore_missing
Ignore missing source images
tag, tags
List of tags, only used within spec
default_tags, auto_tag
Use default/auto tags like the Docker plugin, only used within spec

Is there a mistake on this page? Please let us know or edit this page.