Skip to content

Commit

Permalink
Merge pull request #996 from yaacov/clone-forkliftci
Browse files Browse the repository at this point in the history
🤖 Clone forkliftci ci script
  • Loading branch information
yaacov authored Mar 17, 2024
2 parents 840439c + ba63740 commit b1e357d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ci/deploy-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ if ! [ -x "$(command -v ${CONTAINER_CMD})" ]; then
fi
echo "Found: ${CONTAINER_CMD}"

# Clone forkliftci
# ---------------
bash ${script_dir}/git-clone-forkliftci.sh

# Install cluster
# ---------------

Expand Down
22 changes: 22 additions & 0 deletions ci/git-clone-forkliftci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

set -euo pipefail
script_dir=$(realpath $(dirname "$0"))
forkliftci_dir="${script_dir}/forkliftci"

echo ""
echo "Git clone forkliftci repository"
echo "==============================="
echo ""

# Check if the target directory exists and is a Git repository
if [ -d "$forkliftci_dir/.git" ]; then
echo "forkliftci already exists in $forkliftci_dir."
else
# If not, clone the repository into the target directory
echo "Cloning the forkliftci into $forkliftci_dir..."

# In case we are running CI as different user
git clone https://github.com/kubev2v/forkliftci.git "$forkliftci_dir"
chmod -R ugo+rwx "$forkliftci_dir"
fi

0 comments on commit b1e357d

Please sign in to comment.