Docker release action #94
Merged
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 updates our release pipeline to include mult-platform Docker builds.
$ goreleaser release --clean --snapshot --skip publish • skipping announce, publish, and validate... • cleaning distribution directory • loading environment variables • getting and validating git state • git state commit=0fb545d9bf7c2d5002001f9b49e5235086811eab branch=peteski22/92/release-docker current_tag=v0.0.2 previous_tag=v0.0.1 dirty=true • pipe skipped or partially skipped reason=disabled during snapshot mode • parsing tag • setting defaults • snapshotting • building snapshot... version=0.0.2-SNAPSHOT-0fb545d • running before hooks • running hook=go mod tidy • running hook=go generate ./... • ensuring distribution directory • setting up metadata • writing release metadata • loading go mod information • build prerequisites • building binaries • building binary=dist/mcpd_darwin_arm64_v8.0/mcpd • building binary=dist/mcpd_windows_amd64_v1/mcpd.exe • building binary=dist/mcpd_windows_arm64_v8.0/mcpd.exe • building binary=dist/mcpd_linux_arm64_v8.0/mcpd • building binary=dist/mcpd_darwin_amd64_v1/mcpd • building binary=dist/mcpd_linux_amd64_v1/mcpd • archives • archiving name=dist/mcpd_Linux_x86_64.tar.gz • archiving name=dist/mcpd_Windows_x86_64.zip • archiving name=dist/mcpd_Darwin_x86_64.tar.gz • archiving name=dist/mcpd_Windows_arm64.zip • archiving name=dist/mcpd_Linux_arm64.tar.gz • archiving name=dist/mcpd_Darwin_arm64.tar.gz • calculating checksums • homebrew cask • writing cask=dist/homebrew/Casks/mcpd.rb • docker images • building docker image image=mzdotai/mcpd:v0.0.2-arm64 • building docker image image=mzdotai/mcpd:v0.0.2-amd64 • writing artifacts metadata • release succeeded after 7s • thanks for using GoReleaser!Images built locally:
$ docker image ls | grep mzdotai/mcpd mzdotai/mcpd latest-arm64 3f20610ad04b About a minute ago 274MB mzdotai/mcpd v0.0.2-arm64 3f20610ad04b About a minute ago 274MB mzdotai/mcpd latest-amd64 abebad3c2231 About a minute ago 281MB mzdotai/mcpd v0.0.2-amd64 abebad3c2231 About a minute ago 281MBWhen we do
publishthen the multi-platform manifest should be pushed to DockerHub to handlelatest.See releases available at: https://github.com/mozilla-ai/mcpd/releases