Skip to content

Latest commit

 

History

History
59 lines (49 loc) · 2.19 KB

README.md

File metadata and controls

59 lines (49 loc) · 2.19 KB

README

This repository is for packages.groonga.org.

How to deploy

% sudo apt install -V ansible
% rake deploy

How to test

% sudo apt install -V vagrant ansible
% bundle install
% rake

How to add a new auto signing target

  1. Create a new team for release in the target organization
  2. Add groonga-release to the added team
  3. Add the added team to target project's collaborators with "Write" role
  4. Setup personal access tokens for the target organization
  5. Login to GitHub as groonga-release
  6. Create a new fine-grained personal access token at https://github.com/settings/personal-access-tokens
    • Token name: Project name: e.g. PGroonga
    • Resource owner: Target organization: e.g. pgroonga
    • Repository access: Only select repositories: e.g. pgroonga/pgroonga
    • Repository permissions:
      • Metadata: Read-only
      • Contents: Read and write: We need to upload signed artifacts to GitHub Releases
    • You must copy the generated token
  7. Add the generated token to ansible/vars/private.yml
    • e.g. Run rake private.yml and add packages.github_token.pgroonga with the copied generated token
  8. Approve the created fine-grained personal access token in the target organization
  9. Add ansible/templates/home/packages/.env.#{PROJECT}.jinja with GH_TOKEN={{ packages.github_token.#{PROJECT} }}
    • e.g. GH_TOKEN={{ packages.github_token.pgroonga }}
  10. Add the added .env.#{PROJECT}.jinja to ansible/playbook.yml
  11. Deploy by rake deploy

License

  • Codes in ansible/files/home/: GPLv3+
  • Others: CC0-1.0

See COPYING for GPLv3+ and LICENSE for CC0-1.0.