Skip to content

Commit 8899271

Browse files
authored
Allow staging build on main with version qualifier (#4338)
This commit fixes a bug in #4328 running snapshot instead of staging for x86-64 and also ensures staging on main can be build when VERSION_QUALIFIER is set.
1 parent 29c1d88 commit 8899271

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.buildkite/pipeline.package.mbp.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ steps:
2121

2222
- label: "Package x86_64 staging"
2323
key: "package-x86-64-staging"
24-
command: ".buildkite/scripts/package.sh snapshot"
24+
command: ".buildkite/scripts/package.sh staging"
2525
agents:
2626
provider: "gcp"
2727
image: "${IMAGE_UBUNTU_X86_64}"

.buildkite/scripts/package.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ source .buildkite/scripts/common.sh
66

77
PLATFORM_TYPE=$(uname -m)
88
TYPE="$1"
9+
readonly VERSION_QUALIFIER="${VERSION_QUALIFIER:-""}"
910

10-
if [[ ${BUILDKITE_BRANCH} == "main" && ${TYPE} == "staging" ]]; then
11+
if [[ ${BUILDKITE_BRANCH} == "main" && ${TYPE} == "staging" && -z ${VERSION_QUALIFIER} ]]; then
1112
echo "INFO: staging artifacts for the main branch are not required."
1213
exit 0
1314
fi

0 commit comments

Comments
 (0)