Skip to content

Commit

Permalink
Merge pull request #39 from dotkom/add-deploy-script
Browse files Browse the repository at this point in the history
Add deploy script
  • Loading branch information
Andrefkl authored Feb 27, 2025
2 parents 490194f + 10a36f4 commit 6d2eabf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
AWS_ACCOUNT_ID=$(aws sts get-caller-identity --query "Account" --output text)

docker build -f Dockerfile --platform linux/amd64 -t grades/prod/server:latest .
aws ecr get-login-password --region eu-north-1 | docker login --username AWS --password-stdin "$AWS_ACCOUNT_ID.dkr.ecr.eu-north-1.amazonaws.com"

docker tag grades/prod/server:latest "$AWS_ACCOUNT_ID.dkr.ecr.eu-north-1.amazonaws.com/grades/prod/server:latest" &&
docker push "$AWS_ACCOUNT_ID.dkr.ecr.eu-north-1.amazonaws.com/grades/prod/server:latest"

0 comments on commit 6d2eabf

Please sign in to comment.