Skip to content

Commit

Permalink
Fix install script for 3.0.0-preview Docker images
Browse files Browse the repository at this point in the history
The install script incorrectly selected ghcr.io as the repository to
pull Fabric 3.0.0-preview Docker images.

This change removes trailing pre-release or metadata identifiers from
Docker image tags before looking up the default Docker registry for a
given component version. This means that 3.0.0-preview is treated the
same as 3.0.0.

Signed-off-by: Mark S. Lewis <[email protected]>
  • Loading branch information
bestbeforetoday committed Feb 21, 2025
1 parent f5d79fe commit 1532c75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/install-fabric.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ dockerComponentRegistry() {
local component="$1"
local image_version="$2"

# Remove trailing pre-release or metadata identifiers
image_version="${image_version%%[-+]*}"

case "${component}" in
ca)
echo -n "$(dockerCARegistry "${image_version}")/${HYPERLEDGER_NAMESPACE}"
Expand Down

0 comments on commit 1532c75

Please sign in to comment.