How to rollback

  1. Go to ECR
  2. Go to your repository (for this example we use mc-games)

You can check the repositories from your command line

aws --profile=persgroep ecr describe-repositories
  1. Get the correct version by image tag and pull it

First login:

$(aws ecr get-login --profile persgroep --region eu-west-1 --no-include-email)

Secondly pull the image with the correct git sha (for this example we take 24e99983baece2be54272694f6f96abe62e52688):

docker pull 952653322924.dkr.ecr.eu-west-1.amazonaws.com/mc-games:24e99983baece2be54272694f6f96abe62e52688
  1. Tag it with test/production
docker tag 952653322924.dkr.ecr.eu-west-1.amazonaws.com/mc-games:24e99983baece2be54272694f6f96abe62e52688 952653322924.dkr.ecr.eu-west-1.amazonaws.com/mc-games:test
  1. Push it to ECR
docker push 952653322924.dkr.ecr.eu-west-1.amazonaws.com/mc-games:test
  1. Manually deploy it
Last Updated: 5/2/2019, 11:34:19 AM