Giter Club home page Giter Club logo

drone-auth-ecr's Introduction

drone-auth-ecr is a docker image that lives in your docker registry that can be pulled to auth against ECR from within drone, enabling drone to pull from ECR

Author: Scott Lackey

This image acts as a liazon between your drone instance and Amazon ECR. It has the AWS ECR client and the docker daemon installed so that it can pull an image from ECR. Since drone shares it's volumes the ECR image is available for all build steps.

To build

  • Ensure your drone CI node in AWS is configured with an IAM role with permissions to interact with ECR/ECS
  • Ensure the config/config file has the correct AWS region.
  • build the image with docker build, tag and push

example usage in Drone v.5 pipeline

pipeline:
  auth:
    image: drone-auth-ecr
    commands:
      - aws ecr get-login --region us-east-1 | bash 
      - docker pull 12345.dkr.ecr.us-west-2.amazonaws.com/my-image:latest
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

  build:
    image: 12345.dkr.ecr.us-west-2.amazonaws.com/my-image:latest
    commands:
     - npm intstall
     - npm test

drone-auth-ecr's People

Contributors

scottlackey avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.