Adds GH workflow to build docker images on version tags #1830
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.
Adds a GitHub workflow, and custom docker file, using docker buildx which builds docker container images for different CPU architectures and publishes these images to GitHub packages.
Workflow will automatically run when a version tag is created, pattern
v*
, examplev0.23.0-beta
. Also supports manual workflow trigger to allow the flexibility to build images without needing to create a new version tag.Fixes: #1623
Example of how packages are listed from my fork https://github.com/vpereira01/btcd/pkgs/container/btcd
Few notes:
Extract metadata (tags, labels) for Docker
, will generate the tag latest when creating a tagv0.99
on master. Example from my fork: https://github.com/vpereira01/btcd/runs/5561633723?check_suite_focus=true . Not sure if this should be kept given the comments on wire: add proper types for flag field and improve docs #1632linux/amd64,linux/arm64,linux/arm,linux/386
seems good enough to cover must of uses cases. To support specific GOARM a lot rework is required.References: