From 0472c621343ad2c25a54ae4c60d48993dc368b2f Mon Sep 17 00:00:00 2001 From: Artem Zinnatullin Date: Fri, 27 Sep 2024 16:06:10 -0600 Subject: [PATCH] Include PR info into release version --- .buildkite/steps/repo_info.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.buildkite/steps/repo_info.sh b/.buildkite/steps/repo_info.sh index f994dbd3..520eeb93 100644 --- a/.buildkite/steps/repo_info.sh +++ b/.buildkite/steps/repo_info.sh @@ -5,6 +5,11 @@ set -eufo pipefail tag=$(git describe) version=${tag#v} + +if [[ "${BUILDKITE_PULL_REQUEST:false}" != "false" ]]; then + version="${version}-PR-${BUILDKITE_PULL_REQUEST}" +fi + agent_image=$(buildkite-agent meta-data get agent-image) controller_image=$(buildkite-agent meta-data get controller-image) helm_repo="oci://ghcr.io/buildkite/helm"