Last active
August 28, 2019 20:47
-
-
Save primeobsession/9cb5b40096747b863cc9 to your computer and use it in GitHub Desktop.
circle-ci_elastic-beanstalk_deploy
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
#!/usr/bin/env bash | |
docker login -u $DOCKER_USER -p $DOCKER_PASS | |
SHA1=$CIRCLE_SHA1 | |
# Add latest tag | |
docker tag $IMAGE_PATH:$CIRCLE_BUILD_NUM $IMAGE_PATH:latest | |
docker tag $IMAGE_PATH:$CIRCLE_BUILD_NUM $IMAGE_PATH:latest_$CIRCLE_BRANCH | |
# Deploy image to Docker Hub | |
docker push $IMAGE_PATH:$CIRCLE_BUILD_NUM | |
docker push $IMAGE_PATH:latest | |
docker push $IMAGE_PATH:latest_$CIRCLE_BRANCH | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment