From f1e838c4f1f260ca436cf5d8fb97f552b9c5f143 Mon Sep 17 00:00:00 2001 From: Paulo Sousa Date: Mon, 25 Nov 2024 16:51:10 -0300 Subject: [PATCH] ci: fix regex for packagecloud arch match --- misc/build_publish_to_packagecloud.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/build_publish_to_packagecloud.sh b/misc/build_publish_to_packagecloud.sh index 57d306f2..c117a4cd 100755 --- a/misc/build_publish_to_packagecloud.sh +++ b/misc/build_publish_to_packagecloud.sh @@ -62,7 +62,7 @@ the client used by application developers to communicate with tsuru server." _build_all_packages(){ INPUT_DIRS=$(find dist -type d -name "tsuru_linux_*") for INPUT_DIR in $INPUT_DIRS; do - ARCH=$(echo "${INPUT_DIR}" | sed -e 's/.*tsuru_linux_//' -e 's/_v[0-9]\+//' ) + ARCH=$(echo "${INPUT_DIR}" | sed -e 's/.*tsuru_linux_\([^_]\+\)_.*/\1/' ) PACKAGE_FILE_DEB="${PACKAGE_NAME}_${PACKAGE_VERSION}_${ARCH}.deb" PACKAGE_FILE_RPM="${PACKAGE_NAME}_${PACKAGE_VERSION}_${ARCH}.rpm"