Skip to content

Commit

Permalink
ci: mplementing new workflow using kash repository
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-greffe committed Mar 7, 2024
1 parent d32833b commit cd8aba2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/setup_workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ if [ "$CI" = true ]; then

# workaround since repo is feathers-webpush with a 'A' and in kli file it's feathers-webpush with a 'a'
mv "$WORKSPACE_DIR/feathers-webpush" "$WORKSPACE_DIR/feathers-webpush"
ln -s "$WORKSPACE_DIR/kapp" "$WORKSPACE_DIR/feathers-webpush"
ln -s "$WORKSPACE_DIR/feathers-webpush" "$WORKSPACE_DIR/feathers-webpush"

DEVELOPMENT_REPO_URL="https://$GITHUB_DEVELOPMENT_PAT@github.com/kalisio/development.git"
else
shift $((OPTIND-1))
WORKSPACE_DIR="$1"

# NOTE: cloning kapp could be avoided if we could parse app_version from tag/branch name instead
# In this case, the kli would clone kapp
# NOTE: cloning feathers-webpush could be avoided if we could parse app_version from tag/branch name instead
# In this case, the kli would clone feathers-webpush
GIT_OPS=
if [ -n "$WORKSPACE_TAG" ] || [ -n "$WORKSPACE_BRANCH" ]; then
GIT_OPS="--branch ${WORKSPACE_TAG:-$WORKSPACE_BRANCH}"
fi
git clone --depth 1 $GIT_OPS "$GITHUB_URL/kalisio/feathers-webpush.git" "$WORKSPACE_DIR/kapp"
git clone --depth 1 $GIT_OPS "$GITHUB_URL/kalisio/feathers-webpush.git" "$WORKSPACE_DIR/feathers-webpush"

DEVELOPMENT_REPO_URL="$GITHUB_URL/kalisio/development.git"

Expand All @@ -69,7 +69,7 @@ git clone --depth 1 "$DEVELOPMENT_REPO_URL" "$DEVELOPMENT_DIR"

if [ "$WORKSPACE_KIND" = kli ] || [ "$WORKSPACE_KIND" = klifull ]; then
# select kli file for dependencies
init_app_infos "$WORKSPACE_DIR/kapp" "$DEVELOPMENT_DIR/workspaces/apps"
init_app_infos "$WORKSPACE_DIR/feathers-webpush" "$DEVELOPMENT_DIR/workspaces/apps"
KLI_FILE=$(get_app_kli_file)

echo "About to populate workspace using $KLI_FILE ..."
Expand Down

0 comments on commit cd8aba2

Please sign in to comment.