Add GitHub Workflow to build and push Docker image#4
Open
berney wants to merge 3 commits into
Open
Conversation
Owner
|
Hey, since the project is on it's "baby steps" I didn't added any CICD yet, this is, to avoid creating dirty releases or to manage pre-releases. I plan on release v1 in june, I'll come back to this PR then :) Thanks again for your interest on the project! |
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.
This PR adds a GitHub Workflow to build and push docker images to GHCR (GitHub's Container Registry).
It can be adapted to push to Docker Hub if you'd like.
The workflow extracts the labels from the git repo - from example if you create a git tag
v1.0.0, the docker image will be tagged1.0.0, as well as1.0, andlatest.Pushes to the master branch will also trigger builds and will be labelled
masterandlatest.pushrefs/heads/mastermaster,latest,sha-xxxpush tagrefs/tags/v1.2.31.2.3,1.2,latest,sha-xxxIt builds a multi-arch image - there's an AMD64 and a ARM64 image.
Users will pull the one that matches their host architecture.