Skip to content

Commit

Permalink
probably should work now
Browse files Browse the repository at this point in the history
  • Loading branch information
pawlooss1 committed May 23, 2023
1 parent 9aadf28 commit 8d07c30
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .circleci/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -717,10 +717,10 @@ jobs:
steps:
- checkout
- setup_remote_docker
# - run:
# name: Build package
# command: |
# ./tools/test.sh -p pkg -s false
- run:
name: Build package
command: |
./tools/test.sh -p pkg -s false
- run:
name: Publish package
command: |
Expand Down
24 changes: 11 additions & 13 deletions tools/pkg/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,18 @@ set -e

cd tools/pkg/packages
PACKAGE_NAME=$(ls)
PKG_PROFILE=packages
prefix=${pkg_PLATFORM/_//}
echo $prefix

# if which aws ; then
# echo "aws tool ready"
# else
# curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
# unzip -q awscliv2.zip
# sudo ./aws/install
# fi
if which aws ; then
echo "aws tool ready"
else
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip -q awscliv2.zip
sudo ./aws/install
fi

# PKG_PROFILE=packages
aws configure set aws_access_key_id $PKG_ACCESS_KEY_ID --profile $PKG_PROFILE
aws configure set aws_secret_access_key $PKG_SECRET_ACCESS_KEY --profile $PKG_PROFILE

# aws configure set aws_access_key_id $PKG_ACCESS_KEY_ID --profile $PKG_PROFILE
# aws configure set aws_secret_access_key $PKG_SECRET_ACCESS_KEY --profile $PKG_PROFILE

# aws s3 cp ${PACKAGE_NAME} s3://arn:aws:s3:${PKG_AWS_REGION}:767271724337:accesspoint/mim-packages/tmp_test/${PACKAGE_NAME} --acl public-read --profile $PKG_PROFILE --region $PKG_AWS_REGION
aws s3 cp ${PACKAGE_NAME} s3://arn:aws:s3:${PKG_AWS_REGION}:767271724337:accesspoint/mim-packages/$prefix/${PACKAGE_NAME} --acl public-read --profile $PKG_PROFILE --region $PKG_AWS_REGION

0 comments on commit 8d07c30

Please sign in to comment.