Created
March 27, 2022 07:04
-
-
Save DavidDeCoding/ddfc296bbc30baa2c9e1a24ceb2458c9 to your computer and use it in GitHub Desktop.
Deploy Script to push Image to ECR - Sample ExpressJS App
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 | |
aws ecr get-login-password --region us-west-1 | docker login --username AWS --password-stdin XXXXXXXXX.dkr.ecr.us-west-1.amazonaws.com/hello_word_expressjs_app && | |
docker build -t hello_world_expressjs_app . && | |
docker tag hello_world_expressjs_app:latest XXXXXXXX.dkr.ecr.us-west-1.amazonaws.com/hello_world_expressjs_app:latest && | |
docker push XXXXXXXXX.dkr.ecr.us-west-1.amazonaws.com/hello_world_expressjs_app:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment