From 7c18081f5768b0fd68b8ff5cc400d76a8b2d7113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Michaud?= Date: Thu, 15 Apr 2021 09:56:32 +0200 Subject: [PATCH] ci: include version in the name of tar.gz artifacts (#1919) This makes sure the version is included in GitHub artifacts. Fix #1918 Co-authored-by: Amir Zarrinkafsh --- .buildkite/steps/ghartifacts.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.buildkite/steps/ghartifacts.sh b/.buildkite/steps/ghartifacts.sh index 5b93eeba8..50af9d413 100755 --- a/.buildkite/steps/ghartifacts.sh +++ b/.buildkite/steps/ghartifacts.sh @@ -3,13 +3,15 @@ set -eu artifacts=() -for FILES in \ +for FILE in \ authelia-linux-amd64.tar.gz authelia-linux-amd64.tar.gz.sha256 \ authelia-linux-arm32v7.tar.gz authelia-linux-arm32v7.tar.gz.sha256 \ authelia-linux-arm64v8.tar.gz authelia-linux-arm64v8.tar.gz.sha256 \ authelia-public_html.tar.gz authelia-public_html.tar.gz.sha256; do - artifacts+=(-a "${FILES}") + # Add the version to the artifact name + mv $FILE ${FILE/authelia-/authelia-${BUILDKITE_TAG}-} + artifacts+=(-a "${FILE/authelia-/authelia-${BUILDKITE_TAG}-}") done echo "--- :github: Deploy artifacts for release: ${BUILDKITE_TAG}"