Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
src: skip rebuild of already existing build version
Browse files Browse the repository at this point in the history
Signed-off-by: Deepika Upadhyay <deepika@koor.tech>
  • Loading branch information
Deepika Upadhyay committed Oct 7, 2022
1 parent 7244345 commit d7bdcdb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/build-push-container-imgs-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ if [ -z "$CEPH_POINT_RELEASE" ]; then
exit 1
fi

if curl -s https://registry.hub.docker.com/v2/repositories/koorinc/koor-ceph-container/tags/\?page_size\=100 | jq '."results"[] .name' | grep -q $CEPH_POINT_RELEASE; then
echo "Container for $CEPH_POINT_RELEASE already available at DockerHub koorinc skipping build."
exit 0
fi

docker build --build-arg CEPH_POINT_RELEASE=${CEPH_POINT_RELEASE} . --file $basename/Dockerfile --tag ${CONTAINER_REGISTRY}/${CONTAINER_REPO}:${CEPH_POINT_RELEASE}
docker push ${CONTAINER_REGISTRY}/${CONTAINER_REPO}:${CEPH_POINT_RELEASE}

Expand Down

0 comments on commit d7bdcdb

Please sign in to comment.