Skip to content

Commit

Permalink
build: Fix aws cli path
Browse files Browse the repository at this point in the history
Signed-off-by: Paulo Gomes <[email protected]>
  • Loading branch information
pjbgf committed Jan 24, 2024
1 parent 6d43eef commit 8b1f6c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hack/upload
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ set -eo pipefail

declare AWS_S3_BUCKET_VAR

TOOLS_BIN="${TOOLS_BIN:-build/tools}"
AWS_BIN="${TOOLS_BIN}/aws/dist/aws"

function check_vars()
{
echo "checking for required vars"
Expand Down Expand Up @@ -71,8 +74,8 @@ function upload_artefacts()
esac

echo "Uploading RPMs packages and repo metadata files"
aws s3 cp "build/${POLICY}/noarch/" "s3://${!AWS_S3_BUCKET_VAR}/rancher/${RPM_CHANNEL}/${S3_POLICY_DIR}/noarch/" --recursive
aws s3 cp "build/${POLICY}/source/" "s3://${!AWS_S3_BUCKET_VAR}/rancher/${RPM_CHANNEL}/${S3_POLICY_DIR}/source/" --recursive
"${AWS_BIN}" s3 cp "build/${POLICY}/noarch/" "s3://${!AWS_S3_BUCKET_VAR}/rancher/${RPM_CHANNEL}/${S3_POLICY_DIR}/noarch/" --recursive
"${AWS_BIN}" s3 cp "build/${POLICY}/source/" "s3://${!AWS_S3_BUCKET_VAR}/rancher/${RPM_CHANNEL}/${S3_POLICY_DIR}/source/" --recursive
}

function main()
Expand Down

0 comments on commit 8b1f6c8

Please sign in to comment.