Skip to content

Commit

Permalink
Merge pull request haiwen#130 from haiwen/publish_image
Browse files Browse the repository at this point in the history
publish images from 16.04 to 18.04
  • Loading branch information
renfeipeng authored Dec 19, 2018
2 parents 6e71d47 + c010853 commit 0157060
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ci/publish-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
## 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 seafileltd/base:16.04
docker pull seafileltd/base:18.04

(
cd image
Expand Down
8 changes: 4 additions & 4 deletions ci/publish-pro-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ docker login -u="$DOCKER_PRO_REGISTRY_USER" -p="$DOCKER_PRO_REGISTRY_PASSWORD" d
## 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.seadrive.org/seafileltd/pro-base:16.04
docker tag docker.seadrive.org/seafileltd/pro-base:16.04 seafileltd/pro-base:16.04
docker pull docker.seadrive.org/seafileltd/pro-base:18.04
docker tag docker.seadrive.org/seafileltd/pro-base:18.04 seafileltd/pro-base:18.04

(
cd image
Expand All @@ -27,8 +27,8 @@ docker tag docker.seadrive.org/seafileltd/pro-base:16.04 seafileltd/pro-base:16.
docker login -u="$LOCAL_DOCKER_PRO_REGISTRY_USER" -p="$LOCAL_DOCKER_PRO_REGISTRY_PASSWORD" docker.seafile.top

docker rmi -f $(docker images | awk {'print $3'})
docker pull docker.seafile.top/seafileltd/pro-base:16.04
docker tag docker.seafile.top/seafileltd/pro-base:16.04 seafileltd/pro-base:16.04
docker pull docker.seafile.top/seafileltd/pro-base:18.04
docker tag docker.seafile.top/seafileltd/pro-base:18.04 seafileltd/pro-base:18.04
(
cd image
make host=docker.seafile.top pro-server push-pro-server
Expand Down

0 comments on commit 0157060

Please sign in to comment.