Repository navigation
Conversation
Add Docker workflow: on push to main / v* tags build linux/amd64 and linux/arm64 images on native runners, merge them into a multi-arch manifest and push to GHCR. PRs build without pushing. Speed up builds with cached npm/go layers and per-arch GHA cache scopes, and keep Actions runs and GHCR package versions trimmed to the latest after every run. Also build frontend assets on BUILDPLATFORM and use npm ci in the Dockerfile so arm64 builds no longer hit QEMU SIGILL.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
.github/workflows/docker.ymland optimizes the existingDockerfileso every code change produces a ready-to-pull container image in GHCR.Changes
linux/amd64builds onubuntu-latest,linux/arm64builds on the nativeubuntu-24.04-armrunner; per-arch digests are merged into a single manifest list afterwards.main,v*tags, and manual dispatch. Markdown/docs-only changes are skipped. PRs build the image without pushing (no registry credentials used).lateston the default branch, plus branch, short SHA, and semver tags onv*releases.$BUILDPLATFORM; this avoidsvite/rollupnative binaries crashing under arm64 emulation (qemu: uncaught target signal 4, exit 132). Also switched tonpm cifor reproducible installs.actions/delete-package-versions, untagged only) and old Actions runs (Mattraks/delete-workflow-runs), keeping the latest entries. Both actions are pinned by commit SHA.Side effects worth a look before merging
mainwill publishghcr.io/openprx/fenfaautomatically, including alatesttag.mergejob.Verification
actionlint .github/workflows/docker.ymlpasses (exit 0).build(amd64),build(arm64)andmergeall succeed; the merged manifest resolves both platforms, and the cleanup steps report successful deletions while skipping the in-progress run.