Add new file
This commit is contained in:
parent
e148bb9899
commit
d7d11e630e
27
update.sh
Normal file
27
update.sh
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -o pipefail -o nounset -o errexit
|
||||||
|
|
||||||
|
REPO="ssh://git@gitlab.cabillot.eu:2224/www/rssbridge"
|
||||||
|
TAG="registry.cabillot.eu/www/rssbridge"
|
||||||
|
|
||||||
|
(
|
||||||
|
# TODO : est-ce que le set -o.. marche ici ?
|
||||||
|
if [[ ! -d "build" ]]
|
||||||
|
then
|
||||||
|
git clone "${REPO}" "build"
|
||||||
|
fi
|
||||||
|
cd "build"
|
||||||
|
git pull
|
||||||
|
|
||||||
|
if [[ ! -d "src" ]]
|
||||||
|
then
|
||||||
|
mkdir "src"
|
||||||
|
fi
|
||||||
|
cd "src"
|
||||||
|
curl -L "https://github.com/RSS-Bridge/rss-bridge/tarball/master/" | tar -zx --strip=1
|
||||||
|
chown -R 33:nfsnobody .
|
||||||
|
)
|
||||||
|
|
||||||
|
docker build --no-cache=true -t "${TAG}" build/
|
||||||
|
docker push "${TAG}"
|
||||||
Loading…
x
Reference in New Issue
Block a user