From 54af17473557c7a7e91fd07fc3b954a7e44f963a Mon Sep 17 00:00:00 2001 From: yiraeChristineKim Date: Mon, 1 Jun 2026 11:06:58 -0400 Subject: [PATCH] build(cli): rename hcp archives to include OS and arch in filename Each platform archive was previously named hcp.tar.gz, causing filename collisions when Konflux derives the archive name from the component and archive name rather than the filename field. Rename archives to hcp--.tar.gz and write them flat into ./bin/ to avoid collisions. Signed-off-by: yiraeChristineKim Commit-Message-Assisted-by: Claude (via Claude Code) Co-authored-by: Cursor --- Containerfile.cli | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Containerfile.cli b/Containerfile.cli index f8b5ce3353e..dc9915f2b02 100644 --- a/Containerfile.cli +++ b/Containerfile.cli @@ -8,16 +8,16 @@ COPY . . RUN make product-cli-release && \ # Create tar.gz files for Linux architectures \ for ARCH in amd64 arm64 ppc64le s390x; do \ - tar -czvf ./bin/linux/${ARCH}/hcp.tar.gz -C ./bin/linux/${ARCH} ./hcp || exit 1; \ + tar -czvf ./bin/hcp-linux-${ARCH}.tar.gz -C ./bin/linux/${ARCH} ./hcp || exit 1; \ done && \ # Create tar.gz files for Darwin and Windows architectures \ for OS in darwin windows; do \ for ARCH in amd64 arm64; do \ - tar -czvf ./bin/${OS}/${ARCH}/hcp.tar.gz -C ./bin/${OS}/${ARCH} ./hcp || exit 1; \ + tar -czvf ./bin/hcp-${OS}-${ARCH}.tar.gz -C ./bin/${OS}/${ARCH} ./hcp || exit 1; \ done; \ done && \ - # Remove raw binaries, keep only tar.gz files \ - find ./bin -type f ! -name "*.tar.gz" -delete + # Remove OS/arch subdirectories, keep only flat tar.gz files \ + find ./bin -mindepth 1 -maxdepth 1 -type d -exec rm -rf {} + FROM registry.redhat.io/ubi9/nginx-124:latest