Skip to content

reformatting

reformatting #530

Workflow file for this run

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: |
IMAGE_TAG=$GITHUB_SHA
echo "Running scaf with sixfeetup/scaf:$IMAGE_TAG"
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/rehan892/test-scaf-templates/"
$HOME/.local/bin/scaf myproject --no-input --checkout main $REPO_URL