Repository navigation
ci: build images on GitHub and deploy to mittwald container hosting - #99
Merged
Merged
Conversation
Adds a GitHub Actions workflow that builds both images (amd64) from the
same commit and pushes them to ghcr.io/mittwald/extension-accessibility-checker/{web,executor}.
- push to main: sha-<commit> and latest
- v* tags: sha-<commit> and the tag name
- pull requests: build only, no push
First step towards deploying the extension to mittwald container hosting.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- deploy/stack.yaml: web, executor and MongoDB (with auth and a volume) as a mittwald container stack; images, extension credentials and the Mongo password are filled in at deploy time. - deploy.yaml: deploys the sha-<commit> images of a release tag via mittwald/deploy-container-action. Callable from build-images.yaml and manually (tag as input, also used for rollbacks). Checks the tag, that both images exist in GHCR and that all settings of the "production" environment are present before touching the stack. - build-images.yaml: calls the deploy after building a v* tag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The GitLab project that ran this pipeline (build to the GitLab registry, Helm deploy to Kubernetes) is archived. Builds and deploys now run on GitHub Actions only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Build Images no longer runs on pushes to main and drops the latest tag; images are only published for v* tags (PRs still build without pushing). - Deploy refuses tags that do not point to a commit on main. - MongoDB follows the major version (mongo:8) instead of pinning 8.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
maaaathis
approved these changes
Nov 19, 2026
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.
Why
Moves the extension from the Kubernetes/Helm setup deployed from GitLab towards mittwald container hosting: images are built on GitHub, stored in GHCR, and released into a mittwald container stack.
What
.github/workflows/build-images.yaml– build & publishBuilds
web(packages/web2/Dockerfile) andexecutor(packages/executor/Dockerfile) in one matrix, so both images always come from the same commit (they sharepackages/storage).Pushes to
ghcr.io/mittwald/extension-accessibility-checker/{web,executor}:v*sha-<commit>,<tag>– then deploysv*tagsha-<commit>,<tag>Pushes to
mainpublish and deploy nothing.linux/amd64only, GHA build cache, OCI labels, built-inGITHUB_TOKEN, actions pinned to SHAs.deploy/stack.yaml– the container stackweb(port 3000),executor,mongo:8with a volume; CPU/memory limits per service (first estimate, to be tuned)..github/workflows/deploy.yaml– deploysha-<commit>images of a release tag viamittwald/deploy-container-action– it never builds.build-images.yamlafter av*tag, or manually with a tag as input (also the rollback path). Manual runs must start frommain.main, that both images exist in GHCR, and that all settings are present. Mongo is never recreated by a deploy..gitlab-ci.yml– removedThe GitLab project that ran it (build to the GitLab registry, Helm deploy to Kubernetes) is archived, so the file no longer did anything. GitHub Actions is now the only build and deploy path.
Setup needed before the first deploy
Repository Actions secrets and variables (Settings → Secrets and variables → Actions); the tag build passes the secrets on to the deploy with
secrets: inherit:MITTWALD_API_TOKEN,EXTENSION_SECRETMITTWALD_STACK_ID,EXTENSION_ID, optionalDEPLOYMENT_URLOnce in the mStudio project: add
ghcr.ioas a registry (classic token withread:packages) and point the domain toweb:3000.Review notes
v*tags fails at the config check. Once configured, the stack runs with its own (empty) database next to the Kubernetes production, so it should point to a test extension until the actual switch-over (including data migration).v*tag after merge creates the GHCR packages – please check they are private.deploy-container-actionis pinned by SHA, but it runs the floatingghcr.io/mittwald/deploy-container-action:v1image. It also only logs (does not fail) when recreating a service fails – check the containers in mStudio after a deploy.actionlintand Prettier pass; both images build forlinux/amd64(locally and in this PR's run);deploy/stack.yamlrenders and validates with the action's image using dummy values (fails only at the API call with a fake token, as expected). Nothing has been deployed to a real stack yet.🤖 Generated with Claude Code