Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Siarhei Harbuz committed Jul 27, 2023
1 parent 2a81a15 commit 4271ae1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .buildkite/scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ retry() {
return 0
}

publish_docker_image() {
echo "Pushing the docker image "$DOCKER_IMAGE":"$DOCKER_IMAGE_TAG" to the "${DOCKER_REGISTRY}" registry..."
DOCKER_IMAGE=${DOCKER_IMAGE} DOCKER_IMAGE_TAG=${DOCKER_IMAGE_TAG} make release-docker
}

docker_logout() {
echo "Logging out from Docker..."
docker logout ${DOCKER_REGISTRY}
Expand Down Expand Up @@ -142,15 +147,15 @@ upload_mbp_packages_to_gcp_bucket() {
local pattern=${1}
local type=${2}
get_bucket_uri "${type}"
gsutil -m -q cp -a public-read -r ${pattern} ${bucketUri}
gsutil -m cp -a public-read -r ${pattern} ${bucketUri}
}

download_mbp_packages_from_gcp_bucket() {
local pattern=${1}
local type=${2}
mkdir -p ${WORKSPACE}/${pattern}
get_bucket_uri "${type}"
gsutil -m -q cp -r ${bucketUri}/* ${WORKSPACE}/${pattern}
gsutil -m -q cp -r ${bucketUri} ${WORKSPACE}/${pattern}
}

with_mage() {
Expand Down
3 changes: 1 addition & 2 deletions .buildkite/scripts/dra_release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -euox pipefail
set -euo pipefail

source .buildkite/scripts/common.sh

Expand All @@ -11,7 +11,6 @@ export PROJECT="fleet-server"
export TYPE=${1}
export BRANCH="${BUILDKITE_BRANCH}"
export VERSION="$(make get-version)"
export WORKSPACE

if [[ "${VERSION}" == *"-SNAPSHOT"* || "${VERSION}" == "" ]]; then
echo "The 'version' parameter is required and it cannot contain the suffix '-SNAPSHOT'."
Expand Down
3 changes: 3 additions & 0 deletions .buildkite/scripts/release-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
# It uses env variables to help to run this script with a simpler jenkins
# pipeline call.
#

source .buildkite/scripts/common.sh

set -uexo pipefail

readonly TYPE=${TYPE:-snapshot}
Expand Down

0 comments on commit 4271ae1

Please sign in to comment.