Sets husky pre-push hooks #11
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: | |
build-and-push: | |
environment: dev | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
push: true | |
tags: sixfeetup/scaf:${{ github.sha }} | |
setup: | |
environment: dev | |
needs: build-and-push | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Requirements | |
shell: bash | |
run: | | |
INSTALL_URL="https://raw.githubusercontent.com/sixfeetup/scaf/$GITHUB_REF_NAME/install.sh" | |
export SCAF_SCRIPT_BRANCH=$GITHUB_REF_NAME | |
echo "Downloading install script from $INSTALL_URL" | |
curl -sSL $INSTALL_URL | sh | |
- name: Create Project with Scaf | |
shell: bash | |
run: | | |
IMAGE_TAG=$GITHUB_SHA | |
echo "Running scaf with sixfeetup/scaf:$IMAGE_TAG" | |
/usr/local/bin/scaf myproject --no-input | |