This commit is contained in:
Julien Cabillot 2020-01-08 10:43:23 -05:00
parent b3683bb36d
commit ffdcb8bd30

View File

@ -1,28 +0,0 @@
#!/usr/bin/env bash
set -o pipefail -o nounset -o errexit
REPO="ssh://git@gitlab.cabillot.eu:2224/www/dl.git"
REPO2="https://github.com/blueimp/jQuery-File-Upload.git"
TAG="registry.cabillot.eu/www/dl"
(
if [[ ! -d "build/" ]]
then
git clone "${REPO}" "build/"
fi
cd "build/"
git pull
if [[ ! -d "src" ]]
then
git clone "${REPO2}" "src"
fi
cd "src"
git pull
)
docker build --no-cache=true -t "${TAG}" build/
docker push "${TAG}"