-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow setting extra pushpkg options from environment variable
- Loading branch information
1 parent
c2a5650
commit 531d31b
Showing
3 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,11 +11,11 @@ Steps (as root): | |
2. `cd /buildroots/buildit && git clone https://github.com/AOSC-Dev/buildit` | ||
3. `cd /buildroots/buildit && ciel new` with maintainer called `AOSC OS Maintainers <[email protected]>`, making sure to create an instance named "main" when asked | ||
4. `cp /buildroots/buildit/buildit/systemd/buildit-worker.service /etc/systemd/system` | ||
5. `$EDITOR /etc/systemd/system/buildit-worker.service`:update ARCH | ||
6. `$EDITOR /buildroots/buildit/buildit/.env`: set BUILDIT_SERVER, BUILDIT_WORKER_SECRET BUILDIT_SSH_KEY and BUILDIT_WORKER_PERFORMANCE; for workers in China, optionally update BUILDIT_RSYNC_HOST to repo-cn.aosc.io | ||
5. `$EDITOR /etc/systemd/system/buildit-worker.service`:update `ARCH` | ||
6. `$EDITOR /buildroots/buildit/buildit/.env`: set `BUILDIT_SERVER`, `BUILDIT_WORKER_SECRET` `BUILDIT_SSH_KEY` and `BUILDIT_WORKER_PERFORMANCE`; for workers in China, optionally update `BUILDIT_RSYNC_HOST` to `repo-cn.aosc.io`; for workers with special network environments, optionally set `BUILDIT_PUSHPKG_OPTIONS` | ||
7. `systemctl enable --now buildit-worker` | ||
8. `chmod 600 /buildroots/buildit/buildit/.env` | ||
9. Generate a new SSH key at the location of BUILDIT_SSH_KEY, and setup authorized_keys on repo.aosc.io (contact infra team) | ||
9. Generate a new SSH key at the location of `BUILDIT_SSH_KEY`, and setup `authorized_keys` on repo.aosc.io (contact infra team) | ||
10. Add SSH known hosts from repo.aosc.io, repo-cn.aosc.io and github.com: `ssh-keyscan repo.aosc.io >> ~/.ssh/known_hosts && ssh-keyscan repo-cn.aosc.io >> ~/.ssh/known_hosts && ssh-keyscan github.com >> ~/.ssh/known_hosts` | ||
|
||
Arch-specific notes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters