FEAT: Release workflow for docker image#48
Merged
prasadlohakpure merged 5 commits intomainfrom Mar 16, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Docker image build/push automation to the existing release workflow and introduces a multi-stage Dockerfile to package the caterpillar Go application into a container image.
Changes:
- Expand the release workflow trigger to include both version tags (
v*) and pushes tomain. - Gate GitHub Release creation so it only occurs for tag-based runs.
- Add Docker Buildx + Docker Hub login + metadata tagging + multi-arch build/push steps, plus a new
build/Dockerfile.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
build/Dockerfile |
Adds a multi-stage build intended to compile and package caterpillar into an Alpine-based container image. |
.github/workflows/release.yaml |
Extends the release workflow to run on main and publish Docker images with appropriate tags. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
alephys26
reviewed
Mar 16, 2026
alephys26
approved these changes
Mar 16, 2026
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.
Description
Release workflow for docker image
This pull request introduces automated Docker image builds and pushes to the release workflow, and adds a production-ready
Dockerfilefor building and packaging thecaterpillarapplication. The workflow now supports releases triggered from both tags and themainbranch, and ensures Docker images are tagged appropriately for different release types.Workflow automation and Docker integration:
.github/workflows/release.yamlto trigger releases from both tags and themainbranch, allowing for more flexible release management.linux/amd64andlinux/arm64.Dockerfile addition:
build/Dockerfileto enable building thecaterpillarbinary in a multi-stage process and packaging it into a minimal Alpine-based container image.Types of changes
Checklist