/0key.dev

misskey-dev staging environment

Primary LanguageGoApache License 2.0Apache-2.0

0key.dev

misskey-dev staging environment

This repository also contains the source code for Hariko (張り子), a GitHub Actions-based CI/CD tool for Misskey.

How to install Hariko for your Misskey server

  1. Setup PostgreSQL, Redis, and Meilisearch (optional) in your cluster
  2. Fork this repository and configure .github/workflows/*.yml and charts/*/values.yaml to fit your environment
  3. Create GitHub Webhook (subscribe workflow_job required) and Discord Webhook (optional)
  4. Configure Hariko
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Secret
type: Opaque
data:
  discord-webhook-id-token:
  github-job-name:
  github-repository:
  github-webhook-secret:
  package-name:
  repository-name:
  repository-url:
EOF
  1. Deploy Hariko to your cluster
helm repo add misskey-dev https://misskey-dev.github.io/0key.dev
helm update
helm install hariko misskey-dev/hariko

How to update Misskey with Hariko

  1. Clone this repository to your local machine
  2. Update misskey submodule to the commit you want to update to
  3. Commit and push the changes

GitHub Actions Workflow is also available.

Important

Care should be taken to ensure that database migration is a forward-compatible change. If it is not forward compatible, you will need to stop the service before updating.

Warning

Automatic rollback with reverting database migration is not supported. You need to manually revert the database migration if you want to rollback the Misskey version.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.