Last active
April 12, 2022 12:40
-
-
Save cp-sumi-k/4ccaf205026b68c608eaf10a198b40d3 to your computer and use it in GitHub Desktop.
https://blog.canopas.com/complete-guide-to-deploying-ssr-vite-apps-on-aws-with-automation-27676113d6ac - Deploy image on ECR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
set -e | |
IMAGE_TAG="$GITHUB_SHA" | |
IMAGE_ARN=$1 | |
aws ecr get-login-password --region < AWS-REGION > | docker login --username AWS --password-stdin < YOUR-ECR-URI > | |
docker build -t < DOCKER-IMAGE-NAME >:$IMAGE_TAG . | |
docker tag < DOCKER-IMAGE-NAME >:$IMAGE_TAG $IMAGE_ARN:$IMAGE_TAG | |
docker push $IMAGE_ARN:$IMAGE_TAG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment