Scale after image release (#21398)
This commit is contained in:
10
.github/workflows/staging-deploy-pr-docker.yml
vendored
10
.github/workflows/staging-deploy-pr-docker.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user