diff --git a/.github/workflows/heroku-deploy.yml b/.github/workflows/heroku-deploy.yml index 207cea4..fd0c88e 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 -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 }}