Skip to content

Commit

Permalink
Merge branch 'release' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
sonecabr committed Dec 7, 2021
2 parents 9be50dd + 83a982f commit 1fe7d10
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,26 +220,28 @@ jobs:

release_homebrew:
docker:
- image: hokusai:latest
- image: artsy/hokusai:latest
steps:
- add_ssh_keys
- run:
name: release homebrew
command: |
VERSION=$(cat ./hokusai/VERSION)
export VERSION=$(hokusai version | sed 's/\x1B\[[0-9;]\+[A-Za-z]//g')
cd /tmp
wget https://artsy-provisioning-public.s3.amazonaws.com/hokusai/hokusai-$VERSION-Darwin-x86_64.tar.gz
UNAME=$(uname)
export UNAME=$(uname)
if [ $UNAME == "Darwin" ]; then
SHA256=$(shasum -a 256 hokusai-$VERSION-Darwin-x86_64.tar.gz | awk '{ print $1 }')
export SHA256=$(shasum -a 256 hokusai-$VERSION-Darwin-x86_64.tar.gz | awk '{ print $1 }')
fi
if [ $UNAME == "Linux" ]; then
SHA256=$(sha256sum hokusai-$VERSION-Darwin-x86_64.tar.gz | awk '{ print $1 }')
export SHA256=$(sha256sum hokusai-$VERSION-Darwin-x86_64.tar.gz | awk '{ print $1 }')
fi
ssh-keyscan github.com >> ~/.ssh/known_hosts
git clone [email protected]:artsy/homebrew-formulas.git
cd ./homebrew-formulas
Expand All @@ -266,7 +268,9 @@ jobs:
end
EOF
git commit --author="Hokusai CI" -a -m "Release Hokusai $VERSION"
git config user.name "Hokusai CI"
git config user.email "[email protected]"
git commit -am "Release Hokusai $VERSION"
git push origin master
cd /tmp
Expand Down

0 comments on commit 1fe7d10

Please sign in to comment.