Skip to content

Commit

Permalink
manually set job steps
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmeloc22 committed Aug 18, 2024
1 parent 8ec86f2 commit 62c92f9
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/heroku-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Build, Push and Release a Docker container to Heroku. # Your custom step name
uses: gonuit/[email protected] # GitHub action name (leave it as it is).
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
dockerfile_directory: ./apps/server/
dockerfile_name: Dockerfile
docker_options: "--no-cache"
process_type: web
- name: Login to heroku registry
run: echo "${{ secrets.HEROKU_API_KEY }}" | docker login --username=_ --password-stdin registry.heroku.com

- name: Build container
run: docker build -t registry.heroku.com/${{ secrets.HEROKU_APP_NAME }}/web ./apps/server/ .

- name: Push container
run: docker push registry.heroku.com/${{ secrets.HEROKU_APP_NAME }}/web

- name: Deploy to Heroku
run: heroku container:release web --app ${{ secrets.HEROKU_APP_NAME }}

0 comments on commit 62c92f9

Please sign in to comment.