1
0
mirror of synced 2026-01-04 18:06:26 -05:00

Scale after image release (#21398)

This commit is contained in:
Robert Sese
2021-09-09 15:08:28 -05:00
committed by GitHub
parent c5349fe3d3
commit d1ecb446d7

View File

@@ -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