refactor: 🚚 Point everything to the new GitHub org

This commit is contained in:
Jesse Wierzbinski 2024-08-27 21:40:42 +02:00
parent 47c666894c
commit f9023893af
No known key found for this signature in database
13 changed files with 66 additions and 66 deletions

View file

@ -1,51 +1,51 @@
name: Tests
on:
push:
branches: ["*"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
push:
branches: ["*"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
jobs:
tests:
runs-on: ubuntu-latest
services:
postgres:
image: ghcr.io/lysand-org/postgres:main
ports:
- 5432:5432
env:
POSTGRES_DB: versia
POSTGRES_USER: versia
POSTGRES_PASSWORD: versia
volumes:
- versia-data:/var/lib/postgresql/data
options: --health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
permissions:
contents: read
security-events: write
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
tests:
runs-on: ubuntu-latest
services:
postgres:
image: ghcr.io/versia-pub/postgres:main
ports:
- 5432:5432
env:
POSTGRES_DB: versia
POSTGRES_USER: versia
POSTGRES_PASSWORD: versia
volumes:
- versia-data:/var/lib/postgresql/data
options: --health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
permissions:
contents: read
security-events: write
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install NPM packages
run: |
bun install
- name: Install NPM packages
run: |
bun install
- name: Move workflow config to config folder
run: |
mv .github/config.workflow.toml config/config.toml
- name: Move workflow config to config folder
run: |
mv .github/config.workflow.toml config/config.toml
- name: Run tests
run: |
bun test
- name: Run tests
run: |
bun test

View file

@ -10,7 +10,7 @@ Versia Server `0.7.0` is backwards compatible with `0.6.0`. However, some new fe
## Features
- Upgrade Bun to `1.1.25`. This brings performance upgrades and better stability.
- Added support for the [ActivityPub Federation Bridge](https://github.com/lysand-org/activitypub).
- Added support for the [ActivityPub Federation Bridge](https://github.com/versia-pub/activitypub).
- Added support for the [Sonic](https://github.com/valeriansaliou/sonic) search indexer.
- Note deletions are now federated.
- Note edits are now federated.

View file

@ -28,7 +28,7 @@ curl -fsSL https://bun.sh/install | bash
1. Clone this repository
```bash
git clone https://github.com/lysand-org/server.git
git clone https://github.com/versia-pub/server.git
```
2. Install the dependencies

View file

@ -36,7 +36,7 @@ COPY --from=build /temp/dist /app/dist
COPY entrypoint.sh /app
LABEL org.opencontainers.image.authors="Gaspard Wierzbinski (https://cpluspatch.dev)"
LABEL org.opencontainers.image.source="https://github.com/lysand-org/server"
LABEL org.opencontainers.image.source="https://github.com/versia-pub/server"
LABEL org.opencontainers.image.vendor="Versia Pub"
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
LABEL org.opencontainers.image.title="Versia Server"

View file

@ -38,7 +38,7 @@ export default apiRoute((app) =>
title: config.instance.name,
version: "4.3.0-alpha.3+glitch",
versia_version: version,
source_url: "https://github.com/lysand-org/server",
source_url: "https://github.com/versia-pub/server",
description: config.instance.description,
usage: {
users: {

View file

@ -1,6 +1,6 @@
# This schema always follows the latest dev version of Versia Server, which may not be what you want
# Change the URL to the commit/tag you are using
#:schema https://raw.githubusercontent.com/lysand-org/server/main/config/config.schema.json
#:schema https://raw.githubusercontent.com/versia-pub/server/main/config/config.schema.json
[database]
# Main PostgreSQL database connection
@ -311,7 +311,7 @@ reactions = []
banners = []
avatars = []
# For bridge software, such as lysand-org/activitypub
# For bridge software, such as versia-pub/activitypub
# Bridges must be hosted separately from the main Versia Server process
[federation.bridge]
enabled = false

View file

@ -1,6 +1,6 @@
services:
versia:
image: ghcr.io/lysand-org/server:latest
image: ghcr.io/versia-pub/server:latest
volumes:
- ./logs:/app/dist/logs
- ./config:/app/dist/config
@ -17,7 +17,7 @@ services:
- fe
fe:
image: ghcr.io/lysand-org/frontend:main
image: ghcr.io/versia-pub/frontend:main
container_name: versia-fe
restart: unless-stopped
networks:
@ -26,7 +26,7 @@ services:
NUXT_PUBLIC_API_HOST: https://yourserver.com
db:
image: ghcr.io/lysand-org/postgres:main
image: ghcr.io/versia-pub/postgres:main
container_name: versia-db
restart: unless-stopped
environment:

View file

@ -4,4 +4,4 @@ Versia Server uses a special PostgreSQL extension called `pg_uuidv7` to generate
## Using the Docker image
Versia Server offers a pre-made Docker image for PostgreSQL with the extension already installed. Use `ghcr.io/lysand-org/postgres:main` as your Docker image name to use it.
Versia Server offers a pre-made Docker image for PostgreSQL with the extension already installed. Use `ghcr.io/versia-pub/postgres:main` as your Docker image name to use it.

View file

@ -20,7 +20,7 @@ Docker is the recommended way to run Versia Server (Podman also works). To run V
1. Download the `docker-compose.yml` file from the repository
> [!NOTE]
> You may need to change the image from `ghcr.io/lysand-org/server:latest` to `ghcr.io/lysand-org/server:main` if you want to use the latest changes from the `main` branch. Make sure to use the config template from the same branch as the server.
> You may need to change the image from `ghcr.io/versia-pub/server:latest` to `ghcr.io/versia-pub/server:main` if you want to use the latest changes from the `main` branch. Make sure to use the config template from the same branch as the server.
> [!CAUTION]
> The `latest` tag on the Docker image refers to the latest release (currently `v0.6.0`), not the latest commit on the `main` branch.
@ -28,16 +28,16 @@ Docker is the recommended way to run Versia Server (Podman also works). To run V
> **Do not mix configurations from different branches, or everything will break with confusing errors!**
```bash
curl -o docker-compose.yml https://raw.githubusercontent.com/lysand-org/server/main/docker-compose.yml
curl -o docker-compose.yml https://raw.githubusercontent.com/versia-pub/server/main/docker-compose.yml
```
1. Edit the `docker-compose.yml` file to set up the database connection and other settings
2. Download the `config.example.toml` file from the repository
```bash
# From main branch
curl -o config.example.toml https://raw.githubusercontent.com/lysand-org/server/main/config/config.example.toml
curl -o config.example.toml https://raw.githubusercontent.com/versia-pub/server/main/config/config.example.toml
# For a specific release (e.g. v0.6.0)
curl -o config.example.toml https://raw.githubusercontent.com/lysand-org/server/v0.6.0/config/config.example.toml
curl -o config.example.toml https://raw.githubusercontent.com/versia-pub/server/v0.6.0/config/config.example.toml
```
4. Edit the `config.example.toml` file to set up the database connection and other settings, rename it to `config.toml`, then place it inside `config/` (create the `config/` directory if it does not exist)
5. Run the following command to start the server:
@ -51,14 +51,14 @@ docker compose up
You may need root privileges to run Docker commands.
To check server logs, run `docker compose logs lysand`. The server will likely stop if there is an error, so you can check the logs to see what went wrong.
To check server logs, run `docker compose logs versia`. The server will likely stop if there is an error, so you can check the logs to see what went wrong.
## From Source
1. Clone this repository
```bash
git clone https://github.com/lysand-org/server.git
git clone https://github.com/versia-pub/server.git
```
2. Install the dependencies

View file

@ -5,7 +5,7 @@
outputHash.x86_64-linux = lib.fakeHash;
outputHash.aarch64-linux = lib.fakeHash;
src = fetchFromGitHub {
owner = "lysand-org";
owner = "versia-pub";
repo = "server";
rev = "fbb845f7f8ee97e51ff57edba3817224341d3078";
hash = "sha256-pc5t6z/AE+NPZEzXxTlzT76jq5PF7Mvjh94A0NCBDh8=";

View file

@ -3,7 +3,7 @@
set -euo pipefail
SOURCE=$(nix-prefetch-github --nix lysand-org server | tail -n 6)
SOURCE=$(nix-prefetch-github --nix versia-pub server | tail -n 6)
cat > ./nix/source.nix << EOF
{

View file

@ -10,9 +10,9 @@
"url": "https://cpluspatch.com"
},
"bugs": {
"url": "https://github.com/lysand-org/server/issues"
"url": "https://github.com/versia-pub/server/issues"
},
"icon": "https://github.com/lysand-org/server",
"icon": "https://github.com/versia-pub/server",
"license": "AGPL-3.0-or-later",
"keywords": ["federated", "activitypub", "bun"],
"workspaces": ["packages/*"],
@ -25,7 +25,7 @@
],
"repository": {
"type": "git",
"url": "git+https://github.com/lysand-org/server.git"
"url": "git+https://github.com/versia-pub/server.git"
},
"private": true,
"scripts": {

View file

@ -10,9 +10,9 @@
"url": "https://cpluspatch.com"
},
"bugs": {
"url": "https://github.com/lysand-org/server/issues"
"url": "https://github.com/versia-pub/server/issues"
},
"icon": "https://github.com/lysand-org/server",
"icon": "https://github.com/versia-pub/server",
"license": "AGPL-3.0-or-later",
"keywords": ["federated", "activitypub", "bun"],
"maintainers": [
@ -24,7 +24,7 @@
],
"repository": {
"type": "git",
"url": "git+https://github.com/lysand-org/server.git"
"url": "git+https://github.com/versia-pub/server.git"
},
"private": true,
"dependencies": {