fava service
This commit is contained in:
@@ -28,13 +28,18 @@ data:
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Configure git
|
||||||
|
git config --global credential.helper store
|
||||||
|
git config --global http.sslVerify false
|
||||||
|
|
||||||
# Clone or update the repository
|
# Clone or update the repository
|
||||||
if [ ! -d "/data/contabilitat/.git" ]; then
|
if [ ! -d "/data/contabilitat/.git" ]; then
|
||||||
echo "Cloning repository..."
|
echo "Cloning repository..."
|
||||||
git clone https://${GITEA_USERNAME}:${GITEA_PASSWORD}@gitea.gitea.svc.cluster.local:3000/${GITEA_USERNAME}/contabilitat.git /data/contabilitat
|
git clone http://${GITEA_USERNAME}:${GITEA_PASSWORD}@gitea.gitea.svc.cluster.local:3000/${GITEA_USERNAME}/contabilitat.git /data/contabilitat
|
||||||
else
|
else
|
||||||
echo "Repository exists, pulling latest changes..."
|
echo "Repository exists, pulling latest changes..."
|
||||||
cd /data/contabilitat
|
cd /data/contabilitat
|
||||||
|
git config --global --add safe.directory /data/contabilitat
|
||||||
git pull
|
git pull
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user