Skip to content

FEAT: Release workflow for docker image#48

Merged
prasadlohakpure merged 5 commits intomainfrom
feat_docker_release
Mar 16, 2026
Merged

FEAT: Release workflow for docker image#48
prasadlohakpure merged 5 commits intomainfrom
feat_docker_release

Conversation

@prasadlohakpure
Copy link
Contributor

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 Dockerfile for building and packaging the caterpillar application. The workflow now supports releases triggered from both tags and the main branch, and ensures Docker images are tagged appropriately for different release types.

Workflow automation and Docker integration:

  • Updated .github/workflows/release.yaml to trigger releases from both tags and the main branch, allowing for more flexible release management.
  • Added conditional logic to only create GitHub releases when triggered by a tag, preventing releases from being created on branch pushes.
  • Integrated Docker build and push steps into the release workflow, including Docker Hub authentication, tag extraction, and multi-platform builds for linux/amd64 and linux/arm64.

Dockerfile addition:

  • Added build/Dockerfile to enable building the caterpillar binary in a multi-stage process and packaging it into a minimal Alpine-based container image.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation and I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@prasadlohakpure prasadlohakpure requested a review from a team as a code owner March 12, 2026 09:08
Copilot AI review requested due to automatic review settings March 12, 2026 09:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 to main.
  • 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>
@prasadlohakpure prasadlohakpure merged commit 8eb1f8f into main Mar 16, 2026
7 checks passed
@prasadlohakpure prasadlohakpure deleted the feat_docker_release branch March 16, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants