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

A dockercfg generator for Codeship.

License

Notifications You must be signed in to change notification settings

tailsdotcom/growth-pull

Repository files navigation

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