Closed Trip-kun closed 1 week ago
@coderabbitai review
This pull request introduces two new GitHub Actions workflows for Docker image publishing: one for stable releases and another for the staging branch. Additionally, a new Dockerfile
is created to define a multi-stage build process for a Java application using Gradle, optimizing the image size by separating build and runtime environments. The build.gradle
file is updated to include a new Gradle plugin for creating shadow JARs, and the .dockerignore
file is modified to exclude unnecessary files from the Docker build context. A new workflow for publishing fat JAR files is also added.
File | Change Summary |
---|---|
.github/workflows/docker-publish-stable.yml | New workflow for building and pushing Docker images on release events. |
.github/workflows/docker-publish-staging.yml | New workflow for building and pushing Docker images on pushes to the staging branch. |
Dockerfile | New multi-stage Dockerfile for a Java application using Gradle, optimizing build and runtime. |
build.gradle | Added Gradle plugin com.gradleup.shadow and configured shadowJar task for JAR packaging. |
.dockerignore | Added entries to ignore unnecessary files and directories during Docker image builds. |
.github/workflows/publish-fat-jar.yml | New workflow for building and publishing a fat JAR file on pushes to master and staging branches. |
🐇 In the meadow where changes bloom,
New workflows dance and dispel the gloom.
With Docker's might, our images soar,
Java's shadow shines, opening new doors.
Hopping with joy, we build and we play,
Cheers to the changes, hip-hip-hooray! 🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai review
@coderabbitai review
@coderabbitai review
Summary by CodeRabbit
New Features
.dockerignore
to streamline the Docker build process by excluding unnecessary files.Bug Fixes
Documentation