This commit is contained in:
@@ -17,6 +17,7 @@ if [ -z "${GITEA_PASSWORD:-}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Configure the remote with credentials for non-interactive pulls
|
# Configure the remote with credentials for non-interactive pulls
|
||||||
|
COMPOSE_FILE="docker-compose.meal.yml"
|
||||||
REMOTE_BASE="https://gitea.ct.cozytren.ch/romane/agentbox-test"
|
REMOTE_BASE="https://gitea.ct.cozytren.ch/romane/agentbox-test"
|
||||||
REMOTE_AUTH="https://agentbox:${GITEA_PASSWORD}@gitea.ct.cozytren.ch/romane/agentbox-test"
|
REMOTE_AUTH="https://agentbox:${GITEA_PASSWORD}@gitea.ct.cozytren.ch/romane/agentbox-test"
|
||||||
git remote set-url origin "$REMOTE_AUTH"
|
git remote set-url origin "$REMOTE_AUTH"
|
||||||
@@ -55,13 +56,13 @@ while true; do
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo "[$(date -Iseconds)] Bringing containers down..."
|
echo "[$(date -Iseconds)] Bringing containers down..."
|
||||||
docker compose down 2>&1
|
docker compose -f "$COMPOSE_FILE" down 2>&1
|
||||||
|
|
||||||
echo "[$(date -Iseconds)] Building images..."
|
echo "[$(date -Iseconds)] Building images..."
|
||||||
docker compose build 2>&1
|
docker compose -f "$COMPOSE_FILE" build 2>&1
|
||||||
|
|
||||||
echo "[$(date -Iseconds)] Starting containers..."
|
echo "[$(date -Iseconds)] Starting containers..."
|
||||||
docker compose up -d 2>&1
|
docker compose -f "$COMPOSE_FILE" up -d 2>&1
|
||||||
|
|
||||||
echo "[$(date -Iseconds)] Update complete."
|
echo "[$(date -Iseconds)] Update complete."
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user