Drone plugins > Google Artifact Registry
google_gcr.svg

Google Artifact Registry

by drone-plugins


The GAR plugin can be used to build and publish images to the Google Artifact Registry.

Example

kind: pipeline
name: default

steps:
- name: publish  
  image: plugins/gar
  settings:
    repo: project-id/repo/image-name
    registry: europe-docker.pkg.dev
    tags: latest
    json_key:
      from_secret: google_credentials

Properties

  • registry

    stringrequired

    authenticates to this registry

    Default: none

  • repo

    stringoptional

    repository name for the image including project ID

    Default: none

  • json_key

    stringrequired

    json key - can be inline or base64 encoded

    Secret recommended

    Default: none

  • workload_identity

    booleanoptional

    flag if key is a workload identity key

    Default: false