mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-29 15:44:13 +00:00
circle.yml: Do not push images to dockerhub if building without a docker password
This will allow us to build contributor PRs without passing secrets. Change-Type: patch Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
parent
5023030c69
commit
7eacd93321
@ -41,11 +41,15 @@ defaults: &defaults
|
||||
export EXTRA_TAG=$VERSION_TAG
|
||||
fi
|
||||
echo "Starting build.sh"
|
||||
docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD
|
||||
if [ "$DOCKER_PASSWORD" != "" ]; then
|
||||
docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD
|
||||
export PUSH_IMAGES=${PUSH_IMAGES}
|
||||
else
|
||||
export PUSH_IMAGES=false
|
||||
fi
|
||||
# start the build for this architecture
|
||||
export TAG=${CIRCLE_BRANCH}
|
||||
export ARCH=${ARCH}
|
||||
export PUSH_IMAGES=${PUSH_IMAGES}
|
||||
bash automation/build.sh
|
||||
if [ "${CIRCLE_BRANCH}" = "master" ] && [ "${DEPLOY_TO_RESIN}" = "true" ]; then
|
||||
echo "Deploying to Resin API (staging)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user