doc: Replace GITEA with FORGEJO
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
458c277c18
commit
64d5f63da0
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue