chore: refactor Docker workflows and remove GoReleaser configuration#666
chore: refactor Docker workflows and remove GoReleaser configuration#666creativeprojects wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #666 +/- ##
=======================================
Coverage 81.76% 81.76%
=======================================
Files 161 161
Lines 12009 12009
=======================================
Hits 9818 9818
Misses 1692 1692
Partials 499 499
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
There was a problem hiding this comment.
Pull request overview
This PR refactors how Docker images are built and published by moving multi-arch build logic out of GoReleaser and into a reusable composite GitHub Action, while updating the Makefile and Dockerfile to support cross-compiled binaries for container builds.
Changes:
- Introduces a composite action (
.github/actions/docker-build) to build/push multi-arch images (amd64/arm64) and deduplicates workflow logic. - Updates the Makefile to add
build-cifor cross-compiling container binaries and renames prep/mock targets. - Removes GoReleaser Docker-only configuration and related pre-hooks, switching Docker publishing to dedicated workflow jobs.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| Makefile | Renames prep/mock targets and adds build-ci for Docker image cross-compilation. |
| CONTRIBUTING.md | Updates docs to match renamed Makefile targets. |
| build/Dockerfile | Switches to copying arch-specific resticprofile binaries from build/. |
| .goreleaser.yml | Removes Docker-related hooks/config and manifests from GoReleaser. |
| .goreleaser-docker-only.yml | Deletes the Docker-only GoReleaser config. |
| .github/workflows/snapshot.yml | Switches nightly image build to the new composite action. |
| .github/workflows/release.yml | Separates Docker image publishing into its own job using the composite action. |
| .github/workflows/docker.yml | Refactors scheduled/manual rebuild workflow to use the composite action. |
| .github/actions/docker-build/action.yml | Adds composite action encapsulating buildx setup, binary downloads, cross-compile, and build/push. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.