Skip to content

Commit 13a714b

Browse files
vaibhavGadreCopilot
andcommitted
CHEF-33431: detect platform-ui image dynamically after build-docker.sh
Replace hardcoded IMAGES="platform-ui:local" with the same dynamic grep used by Strategy 1 — detects whatever tag build-docker.sh actually produced. This decouples the workflow from the script's tag name and works correctly regardless of branch, PR, push to main, or release. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 76c4506 commit 13a714b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build-docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
APP_VERSION="${{ github.ref_name }}" \
8181
LOCALES="en" \
8282
./build-docker.sh
83-
IMAGES="platform-ui:local"
83+
IMAGES=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep -E "^${REPO_NAME}" | grep -v "^<none>")
8484
8585
# Strategy 1: Check for build-docker.sh script (e.g., dsm-erchef)
8686
elif [ -f "build-docker.sh" ]; then

.github/workflows/grype.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
APP_VERSION="${{ github.ref_name }}" \
119119
LOCALES="en" \
120120
./build-docker.sh
121-
IMAGES="platform-ui:local"
121+
IMAGES=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep -E "^${REPO_NAME}" | grep -v "^<none>")
122122
123123
# Strategy 1: Check for build-docker.sh script (e.g., dsm-erchef)
124124
elif [ -f "build-docker.sh" ]; then

.github/workflows/wiz.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
APP_VERSION="${{ github.ref_name }}" \
120120
LOCALES="en" \
121121
./build-docker.sh
122-
IMAGES="platform-ui:local"
122+
IMAGES=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep -E "^${REPO_NAME}" | grep -v "^<none>")
123123
124124
# Strategy 1: Check for build-docker.sh script (e.g., dsm-erchef)
125125
elif [ -f "build-docker.sh" ]; then

0 commit comments

Comments
 (0)