Created
October 31, 2019 04:49
-
-
Save bellyjay1005/8cde237ba39d6616ca7c6568086781c4 to your computer and use it in GitHub Desktop.
sample buildspec post build step
This file contains 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
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