Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaosRifle authored Sep 11, 2024
1 parent 0309da6 commit 33a6297
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ chmod 600 "$DEPLOY_KEY_FILE"
SSH_KNOWN_HOSTS_FILE="$HOME/.ssh/known_hosts"
ssh-keyscan -H "$GIT_SERVER" > "$SSH_KNOWN_HOSTS_FILE"
export GIT_SSH_COMMAND="ssh -i "$DEPLOY_KEY_FILE" -o UserKnownHostsFile=$SSH_KNOWN_HOSTS_FILE"
GIT_CMD_REPOSITORY="git@$GIT_SERVER:$USER_NAME/$MERGE_REPO.git"



git config --global user.email $USER_EMAIL
Expand All @@ -46,6 +46,15 @@ echo 'github configured.'
echo ===========================================================================
echo 'main script begins..'

echo 'cloning output repo to build commit/push'
mkdir "$HOME/git"
mkdir "$HOME/git/outputrepo"
GIT_CMD_REPOSITORY="git@$GIT_SERVER:$USER_NAME/$OUTPUT_REPO.git"
git clone --branch dev "$GIT_CMD_REPOSITORY" "$HOME/git/outputrepo"
cp -r "$HOME/git/outputrepo" "$OUTPUT_DIR"

echo ===========================================================================

mkdir "$OUTPUT_DIR"
if [ -d "./miz" ]; then
echo 'miz directory found'
Expand Down Expand Up @@ -81,6 +90,7 @@ if [ -d "./scripts" ]; then
echo 'cloning repo to get merge file..'
mkdir "$HOME/git"
mkdir $MERGE_DIR
GIT_CMD_REPOSITORY="git@$GIT_SERVER:$USER_NAME/$MERGE_REPO.git"
git clone --branch dev "$GIT_CMD_REPOSITORY" "$MERGE_DIR"
echo 'merge directory contents:'
ls $MERGE_DIR
Expand Down

0 comments on commit 33a6297

Please sign in to comment.