Use explicit credentials for deployment polling
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ LOG_FILE="$APP_DIR/data/deploy.log"
|
||||
mkdir -p "$APP_DIR/data"
|
||||
cd "$APP_DIR"
|
||||
|
||||
remote_rev="$(git ls-remote origin refs/heads/main | awk '{print $1}')"
|
||||
remote_rev="$(git -c credential.helper="store --file=/var/services/homes/whitekomani/.git-credentials" ls-remote origin refs/heads/main | awk '{print $1}')"
|
||||
if [ -z "$remote_rev" ]; then
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') no remote revision found" >> "$LOG_FILE"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user