Files
event-uploader/gitea-push.sh
bert.hausmans b333198d7e Add Docker build/push and Dockge deploy workflow
- Add api/admin/upload Dockerfiles and .dockerignore
- Add deploy/docker-compose.yml (ports 3001-3004) and deploy/README.md
- Add scripts/docker-build-push.sh for Gitea registry push
- Add Gitea/SSH scripts and Google Drive controller updates

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-03 13:36:11 +01:00

24 lines
933 B
Bash

#!/bin/bash
# Use this to push to Gitea with 1Password.
# Run from Terminal.app or iTerm (not Cursor's terminal) so 1Password can show its approval dialog.
# Step 1 tests the connection so 1Password can show its approval dialog.
# Step 2 runs git push in the same session (1Password may not prompt again).
set -e
OP_SOCK="$HOME/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
if [ ! -S "$OP_SOCK" ]; then
echo "1Password SSH agent socket not found at: $OP_SOCK"
echo "Enable it: 1Password → Settings → Developer → Use the SSH agent"
exit 1
fi
echo "Step 1: Test SSH (approve in 1Password when it pops up)..."
echo " If nothing pops up, run this script from Terminal.app or iTerm, not Cursor."
export SSH_AUTH_SOCK="$OP_SOCK"
ssh -F "$HOME/.ssh/gitea-1password-only" -T gitea@10.0.10.205 || true
echo ""
echo "Step 2: Pushing to Gitea (same session = no 1Password prompt)..."
exec git push "$@"