From 01e664da3e45078c82ade3664c5c28224f10cdc3 Mon Sep 17 00:00:00 2001 From: xmik Date: Sun, 20 Feb 2022 10:21:45 +0000 Subject: [PATCH] circleci - fix homebrew_tap job --- .circleci/config.yml | 62 +++++++++++++++++++++++++------------------- tasks | 3 ++- 2 files changed, 38 insertions(+), 27 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 85056d3..1440e70 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 @@ -136,6 +142,10 @@ jobs: - setup - attach_workspace: at: ~/repo + - run: + command: /bin/bash -c "git config user.email \"ewa@kudulab.io\"" + - run: + command: /bin/bash -c "git config user.name \"xmik\"" - run: command: /bin/bash -c "./tasks homebrew_tap" diff --git a/tasks b/tasks index d5f423b..5674869 100755 --- a/tasks +++ b/tasks @@ -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 @@ -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 ;;