-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ec86f2
commit c828031
Showing
1 changed file
with
11 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 -f ./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 }} |