Skip to content

Commit

Permalink
feature(core): pipelines and Procfile
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-bertelli committed Mar 23, 2024
1 parent a0a578c commit 41cbacb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy the code into Heroku

on:
push:
branches:
- maaster

jobs:
prod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: sudo apt install python3
- 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 web -a ${{ secrets.HEROKU_APP_NAME }}
- name: Release
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:release web -a ${{ secrets.HEROKU_APP_NAME }}
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: gunicorn --preload --max-requests 500 --max-requests-jitter 5 -t 3 --worker-class gthread --timeout 120 index:app

0 comments on commit 41cbacb

Please sign in to comment.