From db3d04eeda168f7c35b16c1443d88ea50b0b8414 Mon Sep 17 00:00:00 2001 From: Akis Kesoglou Date: Tue, 13 Mar 2018 17:52:46 +0200 Subject: [PATCH] Push images to open-balena-db as well --- .circleci/config.yml | 1 - automation/build.sh | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 26dde92..f0b57a0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,7 +17,6 @@ jobs: - run: name: Setup command: | - docker info docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" apk add --no-cache git - run: diff --git a/automation/build.sh b/automation/build.sh index 255c45b..97f0ce5 100755 --- a/automation/build.sh +++ b/automation/build.sh @@ -21,3 +21,11 @@ docker tag ${IMAGE_NAME}:${REVISION} ${IMAGE_NAME}:${VERSION} docker push ${IMAGE_NAME}:${REVISION} docker push ${IMAGE_NAME}:${BRANCH} docker push ${IMAGE_NAME}:${VERSION} + +# Push the images to open-balena-db repo +docker tag ${IMAGE_NAME}:${REVISION} resin/open-balena-db:${REVISION} +docker tag ${IMAGE_NAME}:${REVISION} resin/open-balena-db:${BRANCH} +docker tag ${IMAGE_NAME}:${REVISION} resin/open-balena-db:${VERSION} +docker push resin/open-balena-db:${REVISION} +docker push resin/open-balena-db:${BRANCH} +docker push resin/open-balena-db:${VERSION}