Skip to content

Commit

Permalink
only push new docker images during CI if it's run against the master …
Browse files Browse the repository at this point in the history
…branch
  • Loading branch information
AO-StreetArt committed Dec 24, 2018
1 parent b295217 commit 9a9fe14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/linux/push_docker.sh
Expand Up @@ -5,5 +5,7 @@ DOCKER_USER=$2
DOCKER_PASS=$3
BRANCH_NAME=$4

docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push aostreetart/aeselprojects:latest
if [ "$BRANCH_NAME" == "master" ]; then
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push aostreetart/aeselprojects:latest
fi

0 comments on commit 9a9fe14

Please sign in to comment.