-
Notifications
You must be signed in to change notification settings - Fork 15
35 lines (30 loc) · 1.31 KB
/
setup-project.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 "setup-project--install@example.com"
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 "setup-project--create@example.com"
git config --global user.name "CI CD Setup Project"
REPO_URL="https://github.com/sixfeetup/scaf-templates.git"
$HOME/.local/bin/scaf myproject --defaults --vcs-ref main $REPO_URL