doc: Replace GITEA with FORGEJO
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Glenn Y. Rolland 2023-02-22 15:29:38 +01:00
parent 458c277c18
commit 64d5f63da0

View file

@ -49,16 +49,16 @@ Add git user on host
Create ssh key for git user
ssh-keygen -t rsa -f /home/git/.ssh/id_rsa -C "Gitea Host Key"
ssh-keygen -t rsa -f /home/git/.ssh/id_rsa -C "Forgejo Host Key"
chmod 600 /home/git/.ssh/id_rsa
Create `/usr/local/bin/forgejo` with the following content
GITEA_CID=code.web.1
# GITEA_IP="$(docker inspect "$GITEA_CID" -f '{{ (index (index .NetworkSettings.Ports "80/tcp") 0).HostPort }}')"
GITEA_IP="$(docker inspect "$GITEA_CID" -f '{{ .NetworkSettings.IPAddress }}' 2>/dev/null )"
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@$GITEA_IP "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
ssh -T -p 22 -o StrictHostKeyChecking=no git@$FORGEJO_IP "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
Success.