#!/bin/bash -ex

AWS_ACCOUNT_ID=$(aws sts get-caller-identity | jq -r .Account)
docker build . -t ${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/ictrp/retrieval:latest
aws ecr get-login-password --region ${AWS_DEFAULT_REGION} | docker login --username AWS --password-stdin ${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com
docker push ${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/ictrp/retrieval:latest

Add script for docker push
Add script for docker push
