Skip to content

Commit

Permalink
Merge pull request #35 from geoadmin/ltrea_no_dockerhub
Browse files Browse the repository at this point in the history
not mentioning dockerhub anymore
  • Loading branch information
ltshb authored Nov 2, 2021
2 parents e2538c5 + 1beba10 commit f233c38
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,14 @@ phases:
commands:
- echo "Unit testing..."
- make test
# Only push image to dockerhub for merge to develop and master
# Only push image to registry for merge to develop and master
- |
if [ "${GITHUB_BRANCH}" = "master" ]; then
echo "Pushing ${DOCKER_IMG_TAG} to dockerhub"
if [ "${GITHUB_BRANCH}" = "master" ] || [ "${GITHUB_BRANCH}" = "develop" ]; then
echo "Pushing image ${DOCKER_IMG_TAG} to the registry"
docker push ${DOCKER_IMG_TAG}
fi
- |
if [ "${GITHUB_BRANCH}" = "develop" ]; then
echo "Pushing ${DOCKER_IMG_TAG} and ${DOCKER_IMG_TAG_LATEST} to dockerhub"
docker push ${DOCKER_IMG_TAG}
echo "Pushing image ${DOCKER_IMG_TAG_LATEST} to the registry"
docker push ${DOCKER_IMG_TAG_LATEST}
fi

0 comments on commit f233c38

Please sign in to comment.