From 62c92f9596d6495a68ad9722355cdb52792f2332 Mon Sep 17 00:00:00 2001 From: gabrielmeloc22 Date: Sun, 18 Aug 2024 11:11:13 -0300 Subject: [PATCH] manually set job steps --- .github/workflows/heroku-deploy.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/heroku-deploy.yml b/.github/workflows/heroku-deploy.yml index 207cea4..9922822 100644 --- a/.github/workflows/heroku-deploy.yml +++ b/.github/workflows/heroku-deploy.yml @@ -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/heroku-docker-deploy@v1.3.3 # 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 }}