matrix-org / rust-synapse-compress-state

A tool to compress some state in a Synapse instance's database
https://pypi.org/project/synapse-auto-compressor/
Apache License 2.0
142 stars 32 forks source link

Add CI to publish official container #117

Closed thefirstofthe300 closed 1 year ago

thefirstofthe300 commented 1 year ago

Adds a Github Actions workflow to publish containers on merges to main and when new tags are pushed.

As part of the change, cargo will now use the release when building the published containers, but default to the dev profile when building the container locally.

To fully configure this CI pipeline, there will need to be two Github Actions secrets added:

The CI will automatically start pushing to both GHCR and Docker Hub.

I've validated the CI works on my own fork of this repo. See this job for a full run.

Signed-off-by: Danny Seymour danny@seymour.family

thefirstofthe300 commented 1 year ago

@reivilibre That doc said I could add the sign-off to the PR so I went ahead and edited the initial PR comment. Let me know if I need to do anything further.