Skip to content

Commit

Permalink
circleci - fix homebrew_tap job
Browse files Browse the repository at this point in the history
  • Loading branch information
xmik committed Feb 20, 2022
1 parent c066717 commit 01e664d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 27 deletions.
62 changes: 36 additions & 26 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,40 @@ workflows:
dojo:
jobs:
- build_unit
- e2e_alpine:
requires:
- build_unit
- e2e_ubuntu:
requires:
- build_unit
- test_images:
requires:
- build_unit
- hold:
type: approval
requires:
- build_unit
- e2e_ubuntu
- e2e_alpine
- test_images
filters:
branches:
only: master
- release:
requires:
- hold
filters:
branches:
only: master
# - e2e_alpine:
# requires:
# - build_unit
# - e2e_ubuntu:
# requires:
# - build_unit
# - test_images:
# requires:
# - build_unit
# - hold:
# type: approval
# requires:
# - build_unit
# - e2e_ubuntu
# - e2e_alpine
# - test_images
# filters:
# branches:
# only: master
# - release:
# requires:
# - hold
# filters:
# branches:
# only: master
# - homebrew_tap:
# requires:
# - release
# filters:
# branches:
# only: master
- homebrew_tap:
requires:
- release
- build_unit
filters:
branches:
only: master
Expand Down Expand Up @@ -136,6 +142,10 @@ jobs:
- setup
- attach_workspace:
at: ~/repo
- run:
command: /bin/bash -c "git config user.email \"[email protected]\""
- run:
command: /bin/bash -c "git config user.name \"xmik\""
- run:
command: /bin/bash -c "./tasks homebrew_tap"

Expand Down
3 changes: 2 additions & 1 deletion tasks
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const DojoVersion = \"${next_version}\"

setup_github_credentials

git clone git@github.com:kudulab/homebrew-dojo-osx.git homebrew-dojo-osx
git clone https://${GITHUB_CREDENTIALS}@github.com/kudulab/homebrew-dojo-osx.git homebrew-dojo-osx
cd homebrew-dojo-osx
cat << EOF > dojo.rb
class Dojo < Formula
Expand Down Expand Up @@ -187,6 +187,7 @@ if OS.mac?
end
EOF
git add dojo.rb
echo "Creating a new git commit"
git commit -m "Updated homebrew tap to ${VERSION}"
git push origin master
;;
Expand Down

0 comments on commit 01e664d

Please sign in to comment.