Skip to content

Commit

Permalink
Update scaf to use template from scaf-template repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rehan892 committed Dec 23, 2024
1 parent 33a5723 commit fa23fd1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/setup-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "CI CD Setup Project"
REPO_URL="https://github.com/sixfeetup/scaf.git"
REPO_URL="https://github.com/rehan892/test-scaf-templates/"
$HOME/.local/bin/scaf myproject --no-input --checkout $GITHUB_REF_NAME $REPO_URL
7 changes: 6 additions & 1 deletion scaf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ fi
CHALLENGE_CONFIG_PATH=".scaf-challenge.json"

# Default repository URL if none is provided
DEFAULT_REPO_URL="https://github.com/sixfeetup/scaf/"
DEFAULT_REPO_URL="https://github.com/rehan892/test-scaf-templates/"

# Default template to use if none provided
DEFAULT_DIRECTORY="templates/sixfeetup-fullstack"
DIRECTORY_OPTION="--directory=\"$DEFAULT_DIRECTORY\""

# Ensure at least one argument is provided (for project_slug)
if [ $# -lt 1 ]; then
Expand Down Expand Up @@ -235,6 +239,7 @@ docker run --rm $DOCKER_RUN_OPTIONS -v "$(pwd):/home/scaf/out" \
cookiecutter \
$COOKIECUTTER_OPTIONS \
$REPO_URL \
$DIRECTORY_OPTION \
project_slug="$COOKIECUTTER_SLUG" \
_challenge="$SCAF_CHALLENGE"

Expand Down

0 comments on commit fa23fd1

Please sign in to comment.