Commit d39db073 authored by Rayan  CHIKHI's avatar Rayan CHIKHI
Browse files

missing files

parent d7963a98
ID=$(aws sts get-caller-identity --query Account --output text)
aws s3 rm s3://aws-unitigs-$ID --recursive
aws cloudformation delete-stack --stack-name aws-unitigs
cd src
ACCOUNT=$(aws sts get-caller-identity --query Account --output text) # AWS ACCOUNT ID
TAG=build-$(date -u "+%Y-%m-%d")
echo "Building Docker Image..."
docker build -t $DOCKER_CONTAINER .
echo "Authenticating against AWS ECR..."
eval $(aws ecr get-login --no-include-email --region us-east-1)
echo "Tagging ${REPO}..."
docker tag $DOCKER_CONTAINER:latest $REPO:$TAG
docker tag $DOCKER_CONTAINER:latest $REPO:latest
echo "Deploying to AWS ECR"
docker push $REPO
aws cloudformation create-stack --stack-name aws-unitigs --template-body file://template/template.yaml --capabilities CAPABILITY_NAMED_IAM
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment