Updated build script

This commit is contained in:
Shuai Lin 2018-09-05 12:53:58 +08:00
parent f022308c79
commit c06bb440a5
2 changed files with 8 additions and 8 deletions

View file

@ -9,16 +9,16 @@
set -e
set -o pipefail
docker login -u="$DOCKER_PRO_REGISTRY_USER" -p="$DOCKER_PRO_REGISTRY_PASSWORD" docker-internal.seadrive.org
docker login -u="$DOCKER_PRO_REGISTRY_USER" -p="$DOCKER_PRO_REGISTRY_PASSWORD" docker.seadrive.org
(
cd image
make host=docker-internal.seadrive.org push-pro-base
make host=docker.seadrive.org push-pro-base
)
docker login -u="$LOCAL_DOCKER_PRO_REGISTRY_USER" -p="$LOCAL_DOCKER_PRO_REGISTRY_PASSWORD" docker-internal.seafile.top
docker login -u="$LOCAL_DOCKER_PRO_REGISTRY_USER" -p="$LOCAL_DOCKER_PRO_REGISTRY_PASSWORD" docker.seafile.top
(
cd image
make host=docker-internal.seafile.top push-pro-base
make host=docker.seafile.top push-pro-base
)

View file

@ -9,17 +9,17 @@
set -e
set -o pipefail
docker login -u="$DOCKER_PRO_REGISTRY_USER" -p="$DOCKER_PRO_REGISTRY_PASSWORD" docker-internal.seadrive.org
docker login -u="$DOCKER_PRO_REGISTRY_USER" -p="$DOCKER_PRO_REGISTRY_PASSWORD" docker.seadrive.org
## Always use the base image we build manually to reduce the download size of the end user.
docker rm -f $(docker ps -a -q)
docker rmi -f $(docker images -a -q)
docker pull docker-internal.seadrive.org/seafileltd/pro-base:16.04
docker tag docker-internal.seadrive.org/seafileltd/pro-base:16.04 seafileltd/pro-base:16.04
docker pull docker.seadrive.org/seafileltd/pro-base:16.04
docker tag docker.seadrive.org/seafileltd/pro-base:16.04 seafileltd/pro-base:16.04
(
cd image
make host=docker-internal.seadrive.org pro-server push-pro-server
make host=docker.seadrive.org pro-server push-pro-server
)