Sign inSign up

yspro/drone-plugin-ecr-fetcher

By yspro

•Updated about 8 years ago

Drone plugin to auth against AWS ECR and pull images

Image
0

100K+

yspro/drone-plugin-ecr-fetcher repository overview

⁠What is it?

DroneCI⁠ plugin that pulls images from AWS ECR⁠ (Amazon Elastic Container Registry)

⁠Why do I need it?

It can be used to auth against ECR, enabling drone to pull private images from there.

⁠Usage

⁠If you're using kubernetes⁠ RBAC⁠ auth

pipeline:
  pull:
    image: yspro/drone-plugin-ecr-fetcher
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    images:
      - $ecr_repo/public_image
      - $ecr_repo/private_image
      - $ecr_repo/another_private_image:some_tag
  ... your steps

⁠If you have AWS ENVs in secrets

pipeline:
  pull:
    image: yspro/drone-plugin-ecr-fetcher
    secrets: [aws_access_key_id, aws_secret_access_key]
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    images:
      - $ecr_repo/public_image
      - $ecr_repo/private_image
      - $ecr_repo/another_private_image:some_tag
  ... your steps

⁠Plugin parameters

⁠images (required)

That parameter is of list type where you specify your docker images

⁠aws_region (optional)

The name of the AWS region. By default it's set to eu-central-1.

pipeline:
  pull:
    image: yspro/drone-plugin-ecr-fetcher
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    images:
      - $ecr_repo/private_image
    aws_region: us-east-1
  ... your steps

Tag summary

Content type

Image

Digest

Size

86.5 MB

Last updated

about 8 years ago

docker pull yspro/drone-plugin-ecr-fetcher