Skip to content

Instantly share code, notes, and snippets.

@bellyjay1005
Created October 31, 2019 04:49
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 bellyjay1005/8cde237ba39d6616ca7c6568086781c4 to your computer and use it in GitHub Desktop.
Save bellyjay1005/8cde237ba39d6616ca7c6568086781c4 to your computer and use it in GitHub Desktop.
sample buildspec post build step
post_build:
commands:
- echo "Tag image to Docker Hub"
- docker tag ${STAGE_REPO_NAME}:${TAG} ${ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${STAGE_REPO_NAME}:${TAG}
- echo "Pushing image to Docker Hub"
- docker push ${ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${STAGE_REPO_NAME}:${TAG}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment