-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: retain old cluster when building single module
- Loading branch information
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
@@ -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] | ||
|