#!/bin/bash -eu set -v repo=$1 . ~/skinner/env.sh # docker buildx create --use # --network=host docker buildx build --platform linux/arm64 -t $repo --load . docker tag $repo:latest $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/$repo:latest docker inspect --format '{{ .Architecture }}' $repo confirm docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/$repo:latest