fix: build Docker image from parent directory to resolve dependencies#28
Merged
aneojgurhem merged 1 commit intomainfrom Nov 24, 2025
Merged
fix: build Docker image from parent directory to resolve dependencies#28aneojgurhem merged 1 commit intomainfrom
aneojgurhem merged 1 commit intomainfrom
Conversation
aneojgurhem
approved these changes
Nov 24, 2025
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.
Motivation
The Docker image build is failing with dependency resolution error:
This prevents the release workflow from completing successfully.
Description
Root Cause
The Docker build step was running from the
worker/armonik-workersubdirectory:When Maven runs from a subdirectory, it cannot see sibling modules in the reactor. The
armonik-workermodule depends onarmonik-worker-domain, but Maven couldn't find it locally and tried to download it from external repositories:0.1.0doesn't exist in GitHub Packages yetSolution
Build from the parent
workerdirectory instead:This enables Maven to:
armonik-worker-domainfrom local sourcearmonik-workerwith access to the freshly built dependencyNo external repository access needed - everything builds from source.
Changes Made
Changed
working-directoryfromworker/armonik-workertoworkerin the "Build and push Docker image" step.Testing
Expected Behavior
armonik-worker-domainis built first (no download needed)armonik-workeris built with the Docker profile active