seafile-containerized/ci/ci.sh

26 lines
513 B
Bash
Raw Normal View History

2016-11-25 07:48:46 +00:00
#!/bin/bash
version=6.2.5
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-data
docker run -d --name seafile -v /opt/seafile-data:/shared -p 80:80 -p 443:443 seafileltd/seafile:$version
docker stop seafile
docker start seafile
docker restart seafile
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