Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Latest commit

 

History

History
executable file
·
27 lines (18 loc) · 785 Bytes

README.md

File metadata and controls

executable file
·
27 lines (18 loc) · 785 Bytes

growth-pull

A dockercfg generator for Codeship.

Must have access to AWS credentials as per the SDK documentation. Normally via environment variables:

  • AWS_DEFAULT_REGION=eu-west-1
  • AWS_ACCESS_KEY_ID=
  • AWS_SECRET_ACCESS_KEY=

Will authenticate to that account's ECR, or you can provide a space separated list of Account IDs in AWS_ECR_REGISTRY_IDS.

You can optionally provide DOCKER_HUB_USERNAME and DOCKER_HUB_PASSWORD to also authenticate with Docker Hub.

Example codeship-services.yml

ecr:
  image: ghcr.io/tailsdotcom/growth-pull:latest
  encrypted_env_file: aws.env.encrypted

build:
  dockercfg_service: ecr
  image: 123.dkr.ecr.eu-west-1.amazonaws.com/foo