service-forgejo/scripts/usr.local.bin.forgejo
Glenn a13aa8e9f7
All checks were successful
continuous-integration/drone/push Build is passing
feat: Add host scripts
2023-02-22 15:41:15 +01:00

7 lines
363 B
Bash

#!/bin/sh
FORGEJO_CID=code.web.1
# FORGEJO_IP="$(docker inspect "$FORGEJO_CID" -f '{{ (index (index .NetworkSettings.Ports "80/tcp") 0).HostPort }}')"
FORGEJO_IP="$(docker inspect "$FORGEJO_CID" -f '{{ .NetworkSettings.IPAddress }}' 2>/dev/null )"
ssh -T -p 22 -o StrictHostKeyChecking=no git@$FORGEJO_IP "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"