Skip to content

ci: add github-actions to publish multi-arch container#12

Open
oliverpool wants to merge 1 commit into
DistriNet:mainfrom
oliverpool:main
Open

ci: add github-actions to publish multi-arch container#12
oliverpool wants to merge 1 commit into
DistriNet:mainfrom
oliverpool:main

Conversation

@oliverpool

@oliverpool oliverpool commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

As proposed in #10

Instead of using the Dockerfile, this leverages the dotnet publish command to build multi-arch (x64 and arm64) container images.

  • on push to main, the container is built for x64 (smoke test, to ensure that the docker build is not broken)
  • on tag, the container is built and published for x64 and arm64 (multi-image arch, so the callers don't have to worry about it)

This works fine, but I had to adjust 2 aspects:

Sqlite DB path change

/app is owned by an user different from the user running the app, so the sqlite db can't be created there. I moved it to /home/app (this also allows consumers to set a volume for the whole /home/app without messing with the dll).

Https -> http

Generating self-signed certs in a previous step is a bit hacky (self-signed certs are easy to misuse and the expiry date is like a time-bomb).

I think that https certs should be managed outside of the docker container (reverse-proxy for instance).

Since dotnet defaults to rootless containers, the app now accepts http requests on port 8080.


You can try the current state on https://github.com/oliverpool/OAuch/pkgs/container/oauch

docker  run -p 8080:8080 ghcr.io/oliverpool/oauch:main

@oliverpool oliverpool force-pushed the main branch 2 times, most recently from fee7dae to 844c97a Compare June 14, 2026 15:49
@oliverpool oliverpool marked this pull request as ready for review June 14, 2026 16:09
@oliverpool

Copy link
Copy Markdown
Contributor Author

@pieterphilippaerts let me know what you think!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant