Skip to content

Refactor Docker task naming and dependencies#46

Merged
lamba92 merged 5 commits intomasterfrom
lamberto.basti/#37-Support-for-com.gradleup.shadow-distributions
Jul 22, 2025
Merged

Refactor Docker task naming and dependencies#46
lamba92 merged 5 commits intomasterfrom
lamberto.basti/#37-Support-for-com.gradleup.shadow-distributions

Conversation

@lamba92
Copy link
Copy Markdown
Owner

@lamba92 lamba92 commented Jul 21, 2025

This commit refactors the Docker task naming convention for clarity and consistency.

  • Renames "publish" tasks to "push" (e.g., dockerPublish is now dockerPush).
  • Introduces a dockerPrepare task group.
  • dockerBuild tasks now depend on dockerPrepare.
  • dockerPush tasks now depend on dockerBuild.
  • dockerBuildxPush tasks now depend on dockerPrepare.
  • Defaults imageVersion to project.version.
  • Updates task arguments to use the new naming and reflect these dependency changes.
  • Ensures "latest" tags are pushed correctly when isLatestTag is true.
  • fixes Support for com.gradleup.shadow distributions #37

Copilot AI review requested due to automatic review settings July 21, 2025 13:17

This comment was marked as outdated.

@lamba92 lamba92 force-pushed the lamberto.basti/#37-Support-for-com.gradleup.shadow-distributions branch 4 times, most recently from f908e83 to b65c5cc Compare July 22, 2025 14:08
This commit refactors the Docker task naming convention for clarity and consistency.

- Renames "publish" tasks to "push" (e.g., `dockerPublish` is now `dockerPush`).
- Introduces a `dockerPrepare` task group.
- `dockerBuild` tasks now depend on `dockerPrepare`.
- `dockerPush` tasks now depend on `dockerBuild`.
- `dockerBuildxPush` tasks now depend on `dockerPrepare`.
- Defaults `imageVersion` to `project.version`.
- Updates task arguments to use the new naming and reflect these dependency changes.
- Ensures "latest" tags are pushed correctly when `isLatestTag` is true.
@lamba92 lamba92 force-pushed the lamberto.basti/#37-Support-for-com.gradleup.shadow-distributions branch from b65c5cc to 6e692db Compare July 22, 2025 14:09
@lamba92 lamba92 requested a review from Copilot July 22, 2025 14:15
Copy link
Copy Markdown

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

This PR refactors the Docker plugin's task naming convention from "publish" to "push" terminology and introduces better task dependency management. The changes align the plugin's terminology with Docker's standard CLI commands while improving task organization.

  • Renames all "publish" related tasks to "push" (e.g., dockerPublishdockerPush)
  • Introduces a new dockerPrepare task group with proper dependency chains
  • Updates default imageVersion to use project.version automatically

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
DockerPlugin.kt Core refactoring of task names from "publish" to "push", added dockerPrepare task group, and updated task dependencies
DockerImage.kt Added default convention for imageVersion to use project.version
README.md Updated documentation to reflect "push" terminology throughout
verify.yml Minor workflow name updates and added --info flag for debugging

lamba92 added 3 commits July 22, 2025 16:22
…flow

- Introduced a `verifyDockerRun` task to validate Docker container output matches expected results.
- Updated the CI workflow to include the `verifyDockerRun` task in the verification process.
- Adjusted `dockerRun` task group from "docker" to "application" for better task segregation.
…om.gradleup.shadow-distributions' into lamberto.basti/#37-Support-for-com.gradleup.shadow-distributions
@lamba92 lamba92 merged commit 9d86ebd into master Jul 22, 2025
3 checks passed
@lamba92 lamba92 deleted the lamberto.basti/#37-Support-for-com.gradleup.shadow-distributions branch July 22, 2025 14:57
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.

Support for com.gradleup.shadow distributions

2 participants