Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.
/ ecr-pusher Public archive

ECR Pusher assists pushing docker images to AWS Elastic Container Registries

Notifications You must be signed in to change notification settings

bugcrowd/ecr-pusher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ECR Pusher

ECR Pusher assists pushing docker images to AWS Elastic Container Registries. It will automatically create the repository at the registry if it does not already exist and encapsulate the login inside its own docker container. This allows for easy pushing to multiple registries without modifying the registry the docker host is configured for.

Usage

ECR Pusher needs valid AWS credentials along with the docker image and tag you want to push.

docker run --privileged --rm \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -e DOCKER_IMAGE=image:tag \
  -e TARGET_REPO=xxx \
  -e TARGET_TAG=xxx \
  -e AWS_ACCESS_KEY_ID=xxx \
  -e AWS_SECRET_ACCESS_KEY=xxx \
  -e AWS_SESSION_TOKEN=xxx \
  -e AWS_DEFAULT_REGION=xxx \
  bugcrowd/ecr-pusher

About

ECR Pusher assists pushing docker images to AWS Elastic Container Registries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published