[PR #1490] [CLOSED] Add a workflow that builds and pushes the Docker image on a version tag #3484

Closed
opened 2026-11-07 14:41:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1490
Author: @nullata
Created: 10/8/2026
Status: ❌ Closed

Base: main ← Head: docker-image-ci


📝 Commits (4)

  • a94199a Add a workflow that builds and pushes the CUDA image on a version tag
  • dfa4537 release-docker-image: drop the disk-cleanup step
  • 6692d81 release-docker-image: document PORTABLE in the Dockerfile header and INSTALL.md
  • 97c6e88 Merge upstream main into docker-image-ci: keep both the Q6K/MMQ expert flags (upstream) and STRATA_PORTABLE (this PR) in the Dockerfile cmake_build call

📊 Changes

3 files changed (+87 additions, -5 deletions)

View changed files

➕ .github/workflows/release-docker-image.yml (+70 -0)
📝 Dockerfile (+15 -5)
📝 docs/INSTALL.md (+2 -0)

📄 Description

Issue: Resolves #1482

Summary

Builds the CUDA Docker image in GitHub Actions on a v* tag and pushes it to GHCR, so users can docker pull instead of compiling the engine themselves (docs/INSTALL.md, "Docker (Linux)"). Closes the gap described in #1482.

What changed

  • .github/workflows/release-docker-image.yml (new): builds and pushes on a v* tag, plus workflow_dispatch for a manual rebuild (which does not move :latest). The version comes from the tag and must match project(strata VERSION ...) in CMakeLists.txt. amd64 only: the engine needs x86-64 AVX2, and an emulated arm64 CUDA compile could not run on an arm64 GPU host anyway. Tags: :latest, :<version>, :<version>-cuda13 — the -cuda13 suffix leaves room for a HIP or SYCL image later. No secrets: the built-in GITHUB_TOKEN with packages: write pushes to GHCR.
  • Dockerfile: new ARG PORTABLE=0, threaded into the engine and vision cmake calls. A published image is not built on the PC it runs on, so CI sets PORTABLE=1 to get the AVX2 floor (CMakeLists.txt's STRATA_PORTABLE, the same failure #411 #412 #419 fixed for the vision encoder). The default stays native, so docker build -t strata . is unchanged.

Extra Notes

Measured on my fork (nullata/Strata, run 37717607320): one uncached build on ubuntu-latest takes ~1h32m; the image is 5.3 GB compressed. Runner disk is not a problem (86 GB free). The image has not been run on a GPU yet — CI has none. If you'd rather keep Docker builds native-only, closing this PR (and #1482) is fine.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1490 **Author:** [@nullata](https://github.com/nullata) **Created:** 10/8/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `docker-image-ci` --- ### 📝 Commits (4) - [`a94199a`](https://github.com/Niko1221/Strata/commit/a94199a50c5d2d393b805c77535e9bb56fc185de) Add a workflow that builds and pushes the CUDA image on a version tag - [`dfa4537`](https://github.com/Niko1221/Strata/commit/dfa4537359073a74534a7444849c97d4021d1044) release-docker-image: drop the disk-cleanup step - [`6692d81`](https://github.com/Niko1221/Strata/commit/6692d810844e7b93a9ec75976bd3e0108af93555) release-docker-image: document PORTABLE in the Dockerfile header and INSTALL.md - [`97c6e88`](https://github.com/Niko1221/Strata/commit/97c6e882e27a75f594d48b75ee77a764c3c6b1d6) Merge upstream main into docker-image-ci: keep both the Q6K/MMQ expert flags (upstream) and STRATA_PORTABLE (this PR) in the Dockerfile cmake_build call ### 📊 Changes **3 files changed** (+87 additions, -5 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/release-docker-image.yml` (+70 -0) 📝 `Dockerfile` (+15 -5) 📝 `docs/INSTALL.md` (+2 -0) </details> ### 📄 Description Issue: Resolves #1482 ## Summary Builds the CUDA Docker image in GitHub Actions on a `v*` tag and pushes it to GHCR, so users can `docker pull` instead of compiling the engine themselves (docs/INSTALL.md, "Docker (Linux)"). Closes the gap described in #1482. ## What changed - `.github/workflows/release-docker-image.yml` (new): builds and pushes on a `v*` tag, plus `workflow_dispatch` for a manual rebuild (which does not move `:latest`). The version comes from the tag and must match `project(strata VERSION ...)` in CMakeLists.txt. amd64 only: the engine needs x86-64 AVX2, and an emulated arm64 CUDA compile could not run on an arm64 GPU host anyway. Tags: `:latest`, `:<version>`, `:<version>-cuda13` — the `-cuda13` suffix leaves room for a HIP or SYCL image later. No secrets: the built-in `GITHUB_TOKEN` with `packages: write` pushes to GHCR. - `Dockerfile`: new `ARG PORTABLE=0`, threaded into the engine and vision cmake calls. A published image is not built on the PC it runs on, so CI sets `PORTABLE=1` to get the AVX2 floor (CMakeLists.txt's `STRATA_PORTABLE`, the same failure #411 #412 #419 fixed for the vision encoder). The default stays native, so `docker build -t strata .` is unchanged. ## Extra Notes Measured on my fork (nullata/Strata, [run 37717607320](https://github.com/nullata/Strata/actions/runs/37717607320)): one uncached build on ubuntu-latest takes ~1h32m; the image is 5.3 GB compressed. Runner disk is not a problem (86 GB free). The image has not been run on a GPU yet — CI has none. If you'd rather keep Docker builds native-only, closing this PR (and #1482) is fine. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:41:48 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3484
No description provided.