Use explicit credentials for deployment polling
This commit is contained in:
@@ -16,7 +16,7 @@ trap 'rmdir "$LOCK_DIR"' EXIT
|
||||
cd "$APP_DIR"
|
||||
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') deploy start" >> "$LOG_FILE"
|
||||
git fetch origin main >> "$LOG_FILE" 2>&1
|
||||
git -c credential.helper="store --file=/var/services/homes/whitekomani/.git-credentials" fetch origin main >> "$LOG_FILE" 2>&1
|
||||
git reset --hard origin/main >> "$LOG_FILE" 2>&1
|
||||
|
||||
/usr/local/bin/docker build -t photoreq:latest . >> "$LOG_FILE" 2>&1
|
||||
|
||||
Reference in New Issue
Block a user