How to rollback
You can check the repositories from your command line
aws --profile=persgroep ecr describe-repositories
- 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
- 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
- Push it to ECR
docker push 952653322924.dkr.ecr.eu-west-1.amazonaws.com/mc-games:test
- Manually deploy it