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:
DOCKERHUB_USERNAME set to matrixdotorg
DOCKERHUB_TOKEN set to an API key capable of pushing to a matrixdotorg/rust-synapse-compress-state Docker Hub repository
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.
@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.
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:
DOCKERHUB_USERNAME
set to matrixdotorgDOCKERHUB_TOKEN
set to an API key capable of pushing to amatrixdotorg/rust-synapse-compress-state
Docker Hub repositoryThe 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