mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 09:01:38 +00:00
Updated build script
This commit is contained in:
parent
f022308c79
commit
c06bb440a5
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue