seafile-containerized/ci/ci.sh

26 lines
556 B
Bash
Raw Normal View History

2016-11-25 07:48:46 +00:00
#!/bin/bash
version=6.2.3
2016-11-25 07:48:46 +00:00
set -e -x
(
cd image
# pip install docker-squash
# make base squash-base server
make base
make server
2016-11-25 07:48:46 +00:00
)
mkdir -p /opt/seafile-docker-data
docker run -d --name seafile-server -v /opt/seafile-docker-data:/shared -p 80:80 -p 443:443 seafileltd/seafile:$version
docker stop seafile-server
docker start seafile-server
docker restart seafile-server
2016-12-21 08:02:49 +00:00
if [[ $TRAVIS_TAG != "" ]]; then
ci/publish-image.sh
2016-12-21 08:14:37 +00:00
else
echo "Not going to push the image to docker hub, since it's not a build triggered by a tag"
2016-12-21 08:02:49 +00:00
fi