Skip to content

Commit

Permalink
fix(*): add build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
HoseaCodes committed Feb 12, 2024
1 parent 9ff1942 commit 2484859
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Snyk Scan
name: Dev Pipeline
on:
push:
branches:
Expand Down Expand Up @@ -54,4 +54,21 @@ jobs:
- run: npm i --legacy-peer-deps
- name: lint
continue-on-error: true
run: npm run lint
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

0 comments on commit 2484859

Please sign in to comment.