RepositoryDockerfileBRBrazil
abarichello

abarichello/godot-ci

Docker image to export Godot Engine games. Templates for Gitlab CI and GitHub Actions to deploy to GitLab Pages/GitHub Pages/Itch.io.

1.2kstars
169forks
40issues
7views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: github-page

#1 Repository of the week

3
TINIX TRENDING·Topic: gitlab

#3 Repository of the week

3
TINIX TRENDING·Topic: gitlab-ci

#3 Repository of the week

godot-ci

Docker image to export Godot Engine games and deploy to GitLab/GitHub Pages and Itch.io using GitLab CI and GitHub Actions.

Docker Hub

https://hub.docker.com/r/barichello/godot-ci/

How To Use

.gitlab-ci.yml and .github/workflows/godot-ci.yml are included in this project as reference.
For live projects, examples and tutorials using this template check the list below:

Mono/C#

To build a Godot project with Mono (C#) enabled, you must do two things for each job:

  1. Change the container's image tag from barichello/godot-ci:VERSION to barichello/godot-ci:mono-VERSION in .gitlab-ci.yml (Gitlab) or godot-ci.yml (Github). (e.g. barichello/godot-ci:mono-3.2.1).
  2. You will also need to change your "Setup" step's run commands (looks like run: mv /root/.local ...) from ending with ...${GODOT_VERSION}.stable to ending with ...${GODOT_VERSION}.stable.mono. You will need to do this for both directories in the command.
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable

becomes:

mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable.mono ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable.mono

Android

To build a debug release (debug.keystore), use the android_debug job example in the gitlab-ci.yml file.

If you want to export for Android with your own keystore, you can do this with the following steps:

  1. Take your generated keystore and convert it to Base64: Linux & macOS: base64 release.keystore -w 0 Windows: certutil -encodehex -f release.keystore encoded.txt 0x40000001
  2. Go to GitLab Project > Settings > CI/CD > Variables and copy the Base64-encoded keystore value in a new variable SECRET_RELEASE_KEYSTORE_BASE64 as type variable.
  3. Create a second variable SECRET_RELEASE_KEYSTORE_USER as type variable with the alias of your keystore as value.
  4. Create a third variable SECRET_RELEASE_KEYSTORE_PASSWORD as type variable with the password of your keystore as value.
  5. Use the android job example in the gitlab-ci.yml file.

GDNative/C++

See this repository for automating GDNative C++ compilation, which is based off this repository.

Modules

You have to compile Godot with the modules included first. See this excellent repository by Calinou for automating Godot builds.

After that, you would use the custom build to export your project as usual. See this guide by Greenfox on how to use a custom Godot build for automated exports.

iOS

Not available yet. Automating Xcode projects is doable but not trivial, and macOS runners only recently became available for GitHub actions, so it will happen eventually.

Platforms

Here's a mapping between each supported CI service, the template jobs and a live example.

CITemplateExample
GitLab CIGodot Exports / GitHub Pages / GitLab Pages / Itch.ioGitLab CI Pipelines
GitHub ActionsGodot ExportsGitHub Actions running

Environment configuration

First you need to remove unused jobs/stages from the .yml file you are using as a template(.gitlab-ci.yml or .github/workflows/godot-ci.yml).
Then you have to add these environments to a configuration panel depending on the chosen CI and jobs:

  • GitHub: https://github.com/<username>/<project-name>/settings/secrets
  • GitLab: https://gitlab.com/<username>/<repo-name>/settings/ci_cd

GitHub Pages

Secrets needed for a GitHub Pages deploy via GitLab CI:

VariableDescriptionExample
REMOTE_URLThe git remote where the web export will be hosted (in this case GitHub), it should contain your deploy/personal access tokenhttps://<github username>:<deploy token>@github.com/<username>/<repository>.git
GIT_EMAILGit email of the account that will commit to the gh-pages branch.email@example.com
GIT_USERNAMEUsername of the account that will commit to the gh-pages branch.username

Others variables are set automatically by the gitlab-runner, see the documentation for predefined variables.

Itch.io

Deployment to Itch.io is done via Butler.
Secrets needed for a Itch.io deploy via GitLab CI:

VariableDescriptionExample
ITCHIO_USERNAMEYour username on Itch.io, as in your personal page will be at https://<username>.itch.iousername
ITCHIO_GAMEthe name of your game on Itchio, as in your game will be available at https://<username>.itch.io/<game>game
BUTLER_API_KEYAn Itch.io API key is necessary for Butler so that the CI can authenticate on Itch.io on your behalf. Make that API key Masked(GitLab CI) to keep it secretxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Troubleshoot

Problems while exporting

  • Check that the export presets file (export_presets.cfg) is committed to version control. In other words, export_presets.cfg must not be in .gitignore.
    • Make sure you don't accidentally commit Android release keystore or Windows codesigning credentials. These credentials cannot be revoked if they are leaked!
  • Check that the export names on export_presets.cfg match the ones used in your CI script (case-sensitive). Export preset names that contain spaces must be written within quotes (single or double).
  • Check the paths used in your CI script. Some commands may be running in the wrong place if you are keeping the project in a folder (like the test-project template) or not.

Authentication errors with Butler

Similar Projects

Discover other similar projects and AI models.

RepositoryJavaScript
iterative/cml

♾️ CML - Continuous Machine Learning | CI/CD for ML

4.2k
Oct 21, 2026
RepositoryGo
harness/harness

Harness Open Source is an end-to-end developer platform with Source Control Management, CI/CD Pipelines, Hosted Developer Environments, and Artifact Registries.

39.0k
Nov 30, 2026
RepositoryTypeScript
portainer/portainer

Making Docker and Kubernetes management easy.

38.9k
Nov 27, 2026
Repository
veggiemonk/awesome-docker

:whale: A curated list of Docker resources and projects

37.3k
Nov 26, 2026
RepositoryGDScript
Orama-Interactive/Pixelorama

Unleash your creativity with Pixelorama, a powerful and accessible open-source pixel art multitool. Whether you want to create sprites, tiles, animations, or just express yourself in the language of pixel art, this software will realize your pixel-perfect dreams with a vast toolbox of features. Available on Windows, Linux, macOS and the Web!

11.3k
Nov 30, 2026
Repository
Calinou/awesome-godot

A curated list of free/libre plugins, scripts and add-ons for Godot

11.0k
Nov 9, 2026
RepositoryTypeScript
peaceiris/actions-gh-pages

GitHub Actions for GitHub Pages 🚀 Deploy static files and publish your site easily. Static-Site-Generators-friendly.

5.4k
Nov 28, 2026
RepositoryTypeScript
JamesIves/github-pages-deploy-action

🚀 Automatically deploy your project to GitHub Pages using GitHub Actions. This action can be configured to push your production-ready code into any branch you'd like.

4.6k
Dec 1, 2026
RepositoryTypeScript
firecow/gitlab-ci-local

Tired of pushing to test your .gitlab-ci.yml?

4.2k
Dec 2, 2026