Skip to content

Commit

Permalink
fix: retain old cluster when building single module
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-ni committed Apr 24, 2024
1 parent 9422d68 commit 7843561
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/cluster-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
repository: ocf/kubernetes

- name: Build cluster repository
run: transpire object build _out ${{ inputs.module_name != '' && format('--module {0}', inputs.module_name) || '' }}
run: >
transpire object build _out ${{ inputs.module_name != '' &&
format('--module {0}', inputs.module_name) || '' }}
- name: Push cluster repository
run: |
Expand All @@ -30,10 +32,10 @@ jobs:
export GIT_SSH_COMMAND="ssh -i $HOME/.ssh/deploy_key -o UserKnownHostsFile=$HOME/.ssh/known_hosts"
CLONE_DIR=$(mktemp -d)
git clone --bare --single-branch --depth 1 [email protected]:ocf/cluster.git $CLONE_DIR
mv $CLONE_DIR _out/.git
git clone --single-branch --depth 1 [email protected]:ocf/cluster.git $CLONE_DIR
cd _out
cd $CLONE_DIR
mv _out/* .
git config --bool core.bare false
git config --bool push.autoSetupRemote true
git config user.email [email protected]
Expand Down

0 comments on commit 7843561

Please sign in to comment.