No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-02 03:08:30 +00:00
defaults Require pinned Forgejo database images 2026-09-02 03:08:30 +00:00
meta Simplify Forgejo deployment role 2026-09-02 03:05:20 +00:00
tasks Require pinned Forgejo database images 2026-09-02 03:08:30 +00:00
.gitignore initial commit 2026-04-05 19:45:53 +00:00
README.md Simplify Forgejo deployment role 2026-09-02 03:05:20 +00:00

Forgejo role

Deploys Forgejo and a PostgreSQL or MariaDB database in a rootless Podman pod.

Required variables:

forgejo_url: git.example.com
forgejo_database_pass: "{{ vault_forgejo_database_pass }}"

Select the database backend with forgejo_database_type (postgres or mysql). Pin forgejo_postgres_image_tag or forgejo_mysql_image_tag to the major version already present in forgejo_database_volume before deploying an existing instance.

Override Forgejo settings directly through its environment-to-ini interface:

forgejo_env:
  FORGEJO__security__SECRET_KEY: "{{ vault_forgejo_secret_key }}"
  FORGEJO__security__INTERNAL_TOKEN: "{{ vault_forgejo_internal_token }}"

The container tasks use no_log: true because their environment contains database and mail credentials.

Deploy or remove the role through the repository entry point:

./run.sh deploy actual --tags forgejo --limit orientpoint
./run.sh deploy actual --tags forgejo --limit orientpoint -e deployment_state=absent