From 5a52734eaf347f6c7455a58800dc74dd42b58b80 Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Thu, 8 Oct 2026 11:53:18 +0100 Subject: [PATCH] ci: move workflow to GitHub Actions Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DBS6bNXjNScyt17hkMeNFo --- {.gitea => .github}/workflows/ci.yml | 9 +++------ docs/DEPLOY.md | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) rename {.gitea => .github}/workflows/ci.yml (88%) diff --git a/.gitea/workflows/ci.yml b/.github/workflows/ci.yml similarity index 88% rename from .gitea/workflows/ci.yml rename to .github/workflows/ci.yml index 66c1139..8a826df 100644 --- a/.gitea/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,16 +16,14 @@ jobs: env: MIX_ENV: test - # The runner uses host networking, so localhost:5432 collides with the - # gitea host's own Postgres. Run our throwaway CI DB on 5433 instead. + # Throwaway CI DB runs on 5433, off the default Postgres port. DATABASE_PORT: "5433" steps: # Everything below runs *inside* the elixir container: # - JS-based actions (checkout, cache) need Node.js, which the image lacks. # - git is needed for the heroicons GitHub dep. - # - Postgres runs locally on localhost to avoid Gitea service-container DNS - # (a service named `postgres` doesn't resolve from this job container). + # - Postgres runs locally on localhost rather than as a service container. - name: Install system deps (Node.js, git, PostgreSQL) run: | apt-get update @@ -47,8 +45,7 @@ jobs: run: | PGVER=$(ls /etc/postgresql) CONF=/etc/postgresql/$PGVER/main - # Trust local connections (throwaway CI DB) and move off 5432, which - # the gitea host already occupies under the runner's host networking. + # Trust local connections (throwaway CI DB) and move off 5432. printf 'local all all trust\nhost all all 127.0.0.1/32 trust\nhost all all ::1/128 trust\n' > "$CONF/pg_hba.conf" printf "\nport = 5433\nlisten_addresses = 'localhost'\n" >> "$CONF/postgresql.conf" pg_ctlcluster "$PGVER" main restart diff --git a/docs/DEPLOY.md b/docs/DEPLOY.md index c703351..f63b2cb 100644 --- a/docs/DEPLOY.md +++ b/docs/DEPLOY.md @@ -84,7 +84,7 @@ Wiring steps: 1. **Project + Postgres**: create a Dokploy project; add a Postgres service; create database `arcada_prod`. Copy its connection string into `DATABASE_URL`. -2. **Application**: source = this Gitea repo (`yolo/arcada`), build type = +2. **Application**: source = the GitHub repo (`naps62/arcada`), build type = **Dockerfile**. Set the env vars above (mark `ANTHROPIC_API_KEY` / `SECRET_KEY_BASE` as secrets). 3. **Migrations on deploy**: set the pre-deploy/start command to run `/app/bin/migrate` before `/app/bin/server` (or run `bin/migrate` once via a