Skip to content

Instantly share code, notes, and snippets.

@DanielDaCosta
Created October 14, 2021 16:29
Show Gist options
  • Save DanielDaCosta/5810a8edb11268584ac2b6f4be69252c to your computer and use it in GitHub Desktop.
Save DanielDaCosta/5810a8edb11268584ac2b6f4be69252c to your computer and use it in GitHub Desktop.
$ docker build -t $DOCKER_REGISTRY/$APP_NAME:latest container/
$ aws ecr describe-repositories --repository-names $APP_NAME || aws ecr create-repository --repository-name $APP_NAME
$ aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $DOCKER_REGISTRY
$ docker push $DOCKER_REGISTRY/$APP_NAME:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment