Skip to content

Instantly share code, notes, and snippets.

@9oelM

9oelM/block39.tf Secret

Created March 21, 2021 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 9oelM/676de137d8723c3c47e955bffbe1983d to your computer and use it in GitHub Desktop.
Save 9oelM/676de137d8723c3c47e955bffbe1983d to your computer and use it in GitHub Desktop.
DEV_HELLO_REPO_URI="{your-account-id}.dkr.ecr.{your-region}.amazonaws.com/dev-hello"
# change to your region for the ease of finding Docker images later
timestamp=$(TZ=":Asia/Seoul" date +%Y%m%d%H%M%S)
docker build -t "${DEV_HELLO_REPO_URI}:latest" -t "${DEV_HELLO_REPO_URI}:${timestamp}" ./packages/hello
docker push "${DEV_HELLO_REPO_URI}:latest"
docker push "${DEV_HELLO_REPO_URI}:${timestamp}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment