Add new file
This commit is contained in:
parent
b8e7e339d0
commit
995718cd02
28
update.sh
Normal file
28
update.sh
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/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 "${REPO2}" "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}"
|
||||||
Loading…
x
Reference in New Issue
Block a user