Skip to content

Commit

Permalink
Update docker-snapshot-release.yml
Browse files Browse the repository at this point in the history
Adds step to build all modules first
  • Loading branch information
aaronzi authored Dec 6, 2024
1 parent 8c5d518 commit 31ad481
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docker-snapshot-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ jobs:
distribution: 'temurin'
cache: maven

- name: Build all modules first
run: mvn clean install -DskipTests

# Build the project
# For registry modules, we activate the dockerbuild profile and specify the module with --pl
- name: Build BaSyx
Expand All @@ -92,9 +95,9 @@ jobs:
module_root=$(dirname "$(dirname "$(dirname "${{ matrix.path }}")")")
artifact_id=$(basename "$module_root")
# Run with dockerbuild profile and namespace
mvn clean install -DskipTests -Pdockerbuild "-Ddocker.namespace=${{ env.DOCKER_NAMESPACE }}" --pl "org.eclipse.digitaltwin.basyx:${artifact_id}" -am
mvn clean install -DskipTests -Pdockerbuild "-Ddocker.namespace=${{ env.DOCKER_NAMESPACE }}" --pl "org.eclipse.digitaltwin.basyx:${artifact_id}"
else
mvn clean install -DskipTests
echo "Non-registry module - already built in the previous step."
fi
- name: Prepare Registry JAR for Docker
Expand Down

0 comments on commit 31ad481

Please sign in to comment.