docs: workflow для работы с VM + Gitea token через SSH
This commit is contained in:
@@ -57,14 +57,16 @@ ssh -i /home/naeel/.ssh/id_ed25519 -o StrictHostKeyChecking=no naeel@5.172.178.2
|
|||||||
|
|
||||||
## Типовой git workflow (commit + push)
|
## Типовой git workflow (commit + push)
|
||||||
|
|
||||||
|
Токен лежит в `secrets/gitea.token` (Gitea PAT, repository read+write).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
ssh -i /home/naeel/.ssh/id_ed25519 -o StrictHostKeyChecking=no naeel@5.172.178.213 '
|
TOKEN=$(cat /home/naeel/remote_dev/sless/secrets/gitea.token | tr -d '\n')
|
||||||
|
ssh -i /home/naeel/.ssh/id_ed25519 -o StrictHostKeyChecking=no naeel@5.172.178.213 "
|
||||||
cd /home/naeel/terra/sless
|
cd /home/naeel/terra/sless
|
||||||
git add <файлы>
|
git add <файлы>
|
||||||
git commit -m "<сообщение>"
|
git commit -m '<сообщение>'
|
||||||
GIT_SSH_COMMAND="ssh -i ~/.ssh/gitea_key -o StrictHostKeyChecking=no" \
|
git push https://naeel:${TOKEN}@gitea-naeel.giteak8s.services.ngcloud.ru/naeel/sless.git <branch>
|
||||||
git push git@gitea-naeel.giteak8s.services.ngcloud.ru:naeel/sless.git <branch>
|
"
|
||||||
'
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## SSHFS монтирование (восстановить если упало)
|
## SSHFS монтирование (восстановить если упало)
|
||||||
|
|||||||
Reference in New Issue
Block a user