diff --git a/.github/workflows/staging-deploy-pr-docker.yml b/.github/workflows/staging-deploy-pr-docker.yml index 8b4d943b37..c2ea86744e 100644 --- a/.github/workflows/staging-deploy-pr-docker.yml +++ b/.github/workflows/staging-deploy-pr-docker.yml @@ -128,10 +128,6 @@ jobs: throw(err) } - - name: Scale Heroku App size - run: | - heroku ps:scale --app=${{ steps.create-app.outputs.app_name}} web=1:Standard-2X - - name: Build, tag, push, and release the Docker image run: | docker image build --target production_early_access -t registry.heroku.com/${{ steps.create-app.outputs.app_name}}/web . @@ -139,6 +135,12 @@ jobs: docker push registry.heroku.com/${{ steps.create-app.outputs.app_name }}/web heroku container:release web --app=${{ steps.create-app.outputs.app_name }} + # This command will fail for a brand new app since they don't have a + # process type yet so we need to scale after `heroku container:release`. + - name: Scale Heroku App size + run: | + heroku ps:scale --app=${{ steps.create-app.outputs.app_name}} web=1:Standard-2X + # https://devcenter.heroku.com/articles/container-registry-and-runtime#getting-a-docker-image-id - name: Get Docker Image ID id: image-id