Update pipeline to use default values #556
Workflow file for this run
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
name: Create scaf project | |
on: [push] | |
jobs: | |
setup: | |
environment: dev | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Requirements | |
shell: bash | |
run: | | |
sudo apt-get update && sudo apt-get install --only-upgrade curl | |
sudo apt-get update && sudo apt-get install --only-upgrade make | |
sudo apt-get update && sudo apt-get install --only-upgrade python3 | |
INSTALL_URL="https://raw.githubusercontent.com/sixfeetup/scaf/$GITHUB_REF_NAME/install.sh" | |
export SCAF_SCRIPT_BRANCH=$GITHUB_REF_NAME | |
git config --global init.defaultBranch dev | |
git config --global user.email "[email protected]" | |
git config --global user.name "CI CD install deps" | |
echo "Downloading install script from $INSTALL_URL" | |
rm -f $HOME/.local/bin/scaf | |
echo "Installing scaf from $INSTALL_URL" | |
curl -sSL $INSTALL_URL | DEBUG=True bash | |
- name: Create Project with Scaf | |
shell: bash | |
run: | | |
git config --global init.defaultBranch dev | |
git config --global user.email "[email protected]" | |
git config --global user.name "CI CD Setup Project" | |
REPO_URL="https://github.com/sixfeetup/scaf-templates.git" | |
$HOME/.local/bin/scaf myproject --use-default $REPO_URL |