deploy: use reliable HTTPS transport for Gitea sync
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Automatic production deployment
|
||||
|
||||
The server checks `git@git.ayau.me:syntaxbullet/minabot.git`, branch `main`, every
|
||||
The server checks `https://git.ayau.me/syntaxbullet/minabot.git`, branch `main`, every
|
||||
minute after the last check finishes. A local commit is deployed after it is
|
||||
pushed to Gitea. Other branches are not deployed. If several commits arrive
|
||||
between checks, the latest fetched main commit is built.
|
||||
@@ -9,9 +9,12 @@ between checks, the latest fetched main commit is built.
|
||||
git push origin main
|
||||
```
|
||||
|
||||
The server uses a repository-only read key under `/opt/minabot/git-auth`, registered
|
||||
as `minabot-production-read-only` in Gitea. The personal Mac SSH key is not copied
|
||||
to the server. Host verification uses the existing trusted Gitea host keys.
|
||||
The repository is public, so the server fetches over HTTPS without credentials.
|
||||
Gitea's SSH transport disconnected during transfer, so this checkout also pushes
|
||||
over HTTPS. Its repository-local credential helper reads the existing `ayau` Tea
|
||||
login only for this exact HTTPS host/repository; it stores no additional token copy.
|
||||
The personal Mac SSH key and Tea token are not copied to the server. If the repository
|
||||
becomes private, provision repository-scoped read credentials before the change.
|
||||
|
||||
The pipeline fetches into a bare repository and archives an exact commit into
|
||||
`/opt/minabot/releases/<sha>`. It builds a test image, runs typecheck and the full
|
||||
|
||||
Reference in New Issue
Block a user