diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 34318a56..621a9508 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,4 +1,4 @@ -name: Snyk Scan +name: Dev Pipeline on: push: branches: @@ -54,4 +54,21 @@ jobs: - run: npm i --legacy-peer-deps - name: lint continue-on-error: true - run: npm run lint \ No newline at end of file + run: npm run lint + build: + needs: [static-scan, dependency-scan, lint] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Login to Heroku Container registry + env: + HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} + run: heroku container:login + - name: Build and push + env: + HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} + run: heroku container:push -a ${{ secrets.HEROKU_APP_NAME }} web + - name: Release + env: + HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} + run: heroku container:release -a ${{ secrets.HEROKU_APP_NAME }} web \ No newline at end of file