Repository navigation
feat(server,web): publish Docker images with each release - #129
Merged
Merged
Conversation
- release.yml: build the relay and web console images on native amd64/arm64
runners, push them by digest to ghcr.io/<owner>/airhand-{server,web}, and
tag the multi-arch images (version; stable releases also X.Y and latest)
before publishing the GitHub Release
- docker-compose.yml, web/docker-compose.yml: use the published images
(AIRHAND_VERSION pins a version); build from source only if the pull fails
or with --build
- set-version.mjs: also write the release version into web/Cargo.toml and
web/Cargo.lock, so the web console shows the tagged version
- docs/deploy: document the images, upgrades, pinning and building from source
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.
Publishes the relay server and web console as Docker images with every release, and makes the bundled Compose files use them.
Changes
.github/workflows/release.yml: a newdockerjob buildsserver/Dockerfileandweb/Dockerfileon nativeubuntu-24.04/ubuntu-24.04-armrunners (no QEMU) and pushes them by digest to GHCR.Publishthen merges them into multi-arch images (linux/amd64 + linux/arm64) and tags them before the GitHub Release goes public:ghcr.io/<owner>/airhand-server,ghcr.io/<owner>/airhand-webX.Y.Z/X.Y.Z-rc.N; stable releases also moveX.Yandlatestdocker-digest-*) are kept out of the release assets andSHA256SUMS.txtdocker-compose.yml,web/docker-compose.yml:image: ghcr.io/sqlpxc/airhand-{server,web}:${AIRHAND_VERSION:-latest}, keepingbuild:.docker compose up -dpulls, and builds from source only if the pull fails;--buildalways builds from source.AIRHAND_VERSIONin.envpins a version (added toweb/.env.example; root.envignored by git and Docker).github/scripts/set-version.mjs: also writes the tag version intoweb/Cargo.tomland theairhand-webentry ofweb/Cargo.lock(the image builds with--locked; changing onlyCargo.tomlfails), so the web console's menu shows the released versiondocs/deploy.md,docs/deploy.zh-CN.md: new "Images and upgrades" section (images, tags, upgrade, pinning / rollback, building from source,docker run)After merging
latestimage on their nextdocker compose up -dafter pulling this change (the image name changed); use--buildto keep building from sourceTesting
set-version.mjsrun locally:cargo metadata --lockedonweb/passes after it, and fails when onlyweb/Cargo.tomlis changedvX.Y.Z-rc.Ntag after merging exercises the new jobs