Skip to content

Commit 1086082

Browse files
committed
Fix minor issue from update_ghcr.sh refactoring
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent caafc31 commit 1086082

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/stirling/testing/demo_apps/go_grpc_tls_pl/server/update_ghcr.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ version=1.0
2828
IMAGES=()
2929

3030
for go_image_digest in "${!GO_IMAGE_DIGEST_MAP[@]}"; do
31-
tag="ghcr.io/pixie-io/golang_${go_image_digest//./_}_grpc_server_with_buildinfo:$version"
31+
go_version=${go_image_digest%%-*}
32+
tag="ghcr.io/pixie-io/golang_${go_version//./_}_grpc_server_with_buildinfo:$version"
3233
google_golang_grpc=${GO_IMAGE_DIGEST_MAP[$go_image_digest]}
3334
echo "Building and pushing image: $tag"
3435
docker build . --build-arg GO_IMAGE_DIGEST="${go_image_digest}" --build-arg GOOGLE_GOLANG_GRPC="${google_golang_grpc}" -t "${tag}"

src/stirling/testing/demo_apps/go_https/server/update_ghcr.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ version=1.0
2828
IMAGES=()
2929

3030
for go_image_digest in "${!GO_IMAGE_DIGEST_MAP[@]}"; do
31-
tag="ghcr.io/pixie-io/golang_${go_image_digest//./_}_https_server_with_buildinfo:$version"
31+
go_version=${go_image_digest%%-*}
32+
tag="ghcr.io/pixie-io/golang_${go_version//./_}_https_server_with_buildinfo:$version"
3233
x_net_version=${GO_IMAGE_DIGEST_MAP[$go_image_digest]}
3334
echo "Building and pushing image: $tag"
3435
docker build . --build-arg GO_IMAGE_DIGEST="${go_image_digest}" --build-arg GOLANG_X_NET="${x_net_version}" -t "${tag}"

0 commit comments

Comments
 (0)