Issue #SBCOSS-00: Create Github actions to publish docker image to GHCR - #112
Merged
Conversation
There was a problem hiding this comment.
I've completed my review and didn't find any issues... but I did find this frog.
.--._.--.
( O O )
/ . . \
.`._______.'.
/( )\
_/ \ \ / / \_
.~ ` \ \ / / ' ~.
{ -. \ V / .- }
_ _`. \ | | | / .'_ _
>_ _} | | | {_ _<
/. - ~ ,_-' .^. `-_, ~ - .\
'-'|/ \|`-`Check out our docs on how you can make Korbit work best for you and your team.
There was a problem hiding this comment.
Pull Request Overview
This PR introduces automated CI/CD capabilities by adding a GitHub Actions workflow that builds and deploys Docker images to GitHub Container Registry (GHCR) when tags are pushed.
- Automates Docker image building and publishing to GHCR on tag pushes
- Implements Java/Maven build pipeline with caching and artifact management
- Establishes proper image tagging strategy using repository name, tag, commit SHA, and run number
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
This PR adds a GitHub Actions workflow to the
certificate-registryrepository.Build and Deploy (
build.yml):Triggers when a Git tag is pushed.
Builds the project, packages the artifact, builds a Docker image, and pushes it to GitHub Container Registry (GHCR).
Description by Korbit AI
What change is being made?
Add a GitHub Actions workflow to automate the build and deployment of a Docker image to the GitHub Container Registry (GHCR) upon tagging any commit.
Why are these changes being made?
Automating the build and deployment process ensures consistency, reduces manual errors, and saves developer time by automatically publishing Docker images to GHCR when a tag is pushed. This approach leverages GitHub's native CI/CD capabilities and integrates well with existing workflows.