Skip to content

Commit a8da8ed

Browse files
committed
fix: use separate local variable when determining component tag in release workflow
Signed-off-by: Michael Zeevi <[email protected]>
1 parent b5c44a4 commit a8da8ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,16 +247,16 @@ jobs:
247247
# We always need to add '-stig-fips' suffix for corresponding image version
248248
# TODO: do not DOCA Driver image for now because $SOURCE_REPO is null one Network Operator will support a new version format
249249
if [[ "$component" == *StigFips ]]; then
250-
COMPONENT_TAG="${COMPONENT_TAG}-stig-fips"
250+
component_tag="${COMPONENT_TAG}-stig-fips"
251251
fi
252252
253253
echo "Updating component: $component"
254254
echo " Setting repository to: $DOCKER_REGISTRY_MANAGED_COMPONENTS"
255-
echo " Setting version to: $COMPONENT_TAG"
255+
echo " Setting version to: $component_tag"
256256
257257
# Update repository and version for components with sourceRepository
258258
yq -i ".${component}.repository = \"$DOCKER_REGISTRY_MANAGED_COMPONENTS\"" hack/release.yaml
259-
yq -i ".${component}.version = \"$COMPONENT_TAG\"" hack/release.yaml
259+
yq -i ".${component}.version = \"$component_tag\"" hack/release.yaml
260260
261261
# Pull the component's helm chart
262262
CHART_LOCATION=$(yq ".${component}.chartLocation" hack/release.yaml)

0 commit comments

Comments
 (0)