Skip to content

Migrate Docker CI to docker/github-builder#17124

Open
AFCMS wants to merge 4 commits into
luanti-org:masterfrom
AFCMS:docker_upgrade
Open

Migrate Docker CI to docker/github-builder#17124
AFCMS wants to merge 4 commits into
luanti-org:masterfrom
AFCMS:docker_upgrade

Conversation

@AFCMS
Copy link
Copy Markdown
Contributor

@AFCMS AFCMS commented Apr 19, 2026

Following #17090, migrate Docker workflow to docker/github-builder

Reduces the complexity of the Docker workflow by using the official Docker reusable workflow which is now the recommended way of building images on GitHub, with automatic dispatching on available runners.

I waited for a release of the workflow to lowercase the image name properly (the ugly hack we used previously to handle forks is no longer needed):
https://github.com/docker/github-builder/releases/tag/v1.6.0

GPT-5.3-Codex have been used to help with the migration.

To do

This PR is a Ready for Review.

  • See if workflow work properly

How to test

See workflow runs

@sfan5 sfan5 added @ Build CMake, build scripts, official builds, compiler and linker errors Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements labels Apr 19, 2026
@AFCMS

This comment was marked as outdated.

@AFCMS
Copy link
Copy Markdown
Contributor Author

AFCMS commented Apr 19, 2026

It fails on .git copy, I suspect a checkout problem with the reusable workflow (like cloning without .git folder), will investigate.

@AFCMS
Copy link
Copy Markdown
Contributor Author

AFCMS commented Apr 19, 2026

The actions uses buildkit Git source, and apparently it doesn't copy .git.

This doesn't work for the same reason:

docker build https://github.com/luanti-org/luanti.git

https://github.com/docker/github-builder/blob/701e2d721d5db45dfca08b44ceb810d0a985029a/.github/workflows/build.yml#L588

Edit: docker/github-builder#182

@AFCMS AFCMS marked this pull request as draft April 19, 2026 19:57
@AFCMS AFCMS marked this pull request as ready for review April 20, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@ Build CMake, build scripts, official builds, compiler and linker errors Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants