Skip to content

Commit

Permalink
change the logic of defining the OS type
Browse files Browse the repository at this point in the history
  • Loading branch information
Siarhei Harbuz committed Jul 25, 2023
1 parent 575abe7 commit b93765d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .buildkite/scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ add_bin_path() {

with_go() {
echo "Setting up the Go environment..."
create_workspace
local platform_type=$(uname)
local hw_type=$(uname -m)
create_workspace
case "$hw_type" in
"x86_64")
arch_type="amd64"
Expand All @@ -47,6 +47,8 @@ with_go() {

with_docker_compose() {
echo "Setting up the Docker-compose environment..."
local platform_type=$(uname)
local hw_type=$(uname -m)
create_workspace
retry 5 curl -SL -o ${WORKSPACE}/docker-compose "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-${platform_type,,}${hw_type}"
chmod +x ${WORKSPACE}/docker-compose
Expand Down

0 comments on commit b93765d

Please sign in to comment.