|
|
@ -1,10 +1,11 @@ |
|
|
|
#!/bin/bash |
|
|
|
#!/bin/bash |
|
|
|
set -e |
|
|
|
set -e |
|
|
|
|
|
|
|
|
|
|
|
export TAG="$CIRCLE_BRANCH" |
|
|
|
if [ "$CIRCLE_BRANCH" == "master" ]; |
|
|
|
|
|
|
|
then |
|
|
|
if [ "$CIRCLE_BRANCH" == "master" ]; then |
|
|
|
|
|
|
|
export TAG="latest"; |
|
|
|
export TAG="latest"; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
export TAG=$(sed 's/#/-/g' <<< $CIRCLE_BRANCH) |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
docker login --username $DOCKER_USER --password $DOCKER_PASS |
|
|
|
docker login --username $DOCKER_USER --password $DOCKER_PASS |
|
|
|