Skip to content

Instantly share code, notes, and snippets.

@DavidDeCoding
Created March 27, 2022 07:04
Show Gist options
  • Save DavidDeCoding/ddfc296bbc30baa2c9e1a24ceb2458c9 to your computer and use it in GitHub Desktop.
Save DavidDeCoding/ddfc296bbc30baa2c9e1a24ceb2458c9 to your computer and use it in GitHub Desktop.
Deploy Script to push Image to ECR - Sample ExpressJS App
#!/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