Skip to content

Commit 6307232

Browse files
committed
Fixes problems with DTR docker workflows
1 parent 9a45918 commit 6307232

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/docker-milestone-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
# Process registry modules
8484
- name: Process Registry Module
8585
id: registry_module
86-
if: contains(matrix.name, 'registry')
86+
if: contains(matrix.name, 'registry') && matrix.name != 'digitaltwinregistry'
8787
run: |
8888
# Get the module path without /src/main/docker
8989
MODULE_PATH=$(echo ${{ matrix.path }} | sed 's|/src/main/docker||')
@@ -128,7 +128,7 @@ jobs:
128128
# Process non-registry modules
129129
- name: Process Non-Registry Module
130130
id: non_registry_module
131-
if: "!contains(matrix.name, 'registry')"
131+
if: ${{ !contains(matrix.name, 'registry') || matrix.name == 'digitaltwinregistry' }}
132132
run: |
133133
echo "Processing non-registry module"
134134
echo "FINAL_NAME=" >> $GITHUB_ENV

.github/workflows/docker-snapshot-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
# For registry modules, we activate the dockerbuild profile and specify the module with --pl
9595
- name: Build BaSyx
9696
run: |
97-
if [[ "${{ matrix.name }}" == *"registry"* ]]; then
97+
if [[ "${{ matrix.name }}" == *"registry"* && "${{ matrix.name }}" != "digitaltwinregistry" ]]; then
9898
# Derive the module's artifactId from the path
9999
module_root=$(dirname "$(dirname "$(dirname "${{ matrix.path }}")")")
100100
artifact_id=$(basename "$module_root")
@@ -105,7 +105,7 @@ jobs:
105105
fi
106106
107107
- name: Prepare Registry JAR for Docker
108-
if: contains(matrix.name, 'registry')
108+
if: contains(matrix.name, 'registry') && matrix.name != 'digitaltwinregistry'
109109
run: |
110110
# Go three levels up from src/main/docker to get the module root
111111
module_root=$(dirname "$(dirname "$(dirname "${{ matrix.path }}")")")
@@ -126,8 +126,8 @@ jobs:
126126
echo "FINAL_NAME=${FINAL_NAME}" >> $GITHUB_ENV
127127
128128
- name: No-Op for Non-Registry Modules
129-
if: "!contains(matrix.name, 'registry')"
130-
run: echo echo "FINAL_NAME=" >> $GITHUB_ENV
129+
if: ${{ !contains(matrix.name, 'registry') || matrix.name == 'digitaltwinregistry' }}
130+
run: echo "FINAL_NAME=" >> $GITHUB_ENV
131131

132132
- name: Set short SHA
133133
run: echo "SHORT_SHA=${GITHUB_SHA:0:7}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)