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.
This PR adds two automated builds via GitHub Actions.
On every tag that matches
v*.*.*
the Docker images will be built for amd64 and arm64 and pushed to Docker Hub.You need to add three secrets at https://github.com/L2-Technology/sensei/settings/secrets/actions:
DOCKER_USERNAME
Your Docker Hub usernameDOCKER_PASSWORD
You Docker Hub password or ideally API tokenDOCKER_HUB_USER
The Docker Hub account the image will be published as$DOCKER_HUB_USER/sensei
under. Can be your Docker Hub account or an org you have push access to.On every push the Docker images will be built for amd64 and arm64 but not pushed to check the Docker images are still building correctly against each commit.
This is not yet tested, the builds are still running on my fork. Note the job takes a very long time since the use of
buildx
runs the non-native platform builds inside a VM for the respective platforms. Running a native amd64 build on GitHub Actions takes ~20 mins. The virtaulised arm64 build has been running for 1hr40m and has still not completed. If build time becomes an issue we could transition the builds to use Rust's cross compilation tooling so non-native platform builds are cross-compiled natively instead of in a virtual environment. This would probably get the total build time down to ~20 mins but would be a bit more involved.