#!/bin/sh ECR_URI_BASE=999999999999.dkr.ecr.ap-northeast-1.amazonaws.com TEMPORARY_IMAGE_NAME=XXX # Build docker build -t $TEMPORARY_IMAGE_NAME . # ECR_URI if [ -z "$ECR_URI_BASE" ]; then echo "Need to set ECR_URI_BASE" exit 1 fi if [ -z "$IMAGE_TAG" ]; then echo "Need to set IMAGE_TAG" exit 1 fi ECR_URI=$ECR_URI_BASE/$TEMPORARY_IMAGE_NAME:$IMAGE_TAG # Login if [ -z "$AWS_DEFAULT_REGION" ]; then e