#!/usr/bin/env bash

aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 038504843107.dkr.ecr.us-west-2.amazonaws.com

export TAG="alpine"
docker pull "memcached:$TAG"

docker tag "memcached:$TAG" "038504843107.dkr.ecr.us-west-2.amazonaws.com/memcached:$TAG"
docker push "038504843107.dkr.ecr.us-west-2.amazonaws.com/memcached:$TAG"
