1
0
mirror of synced 2026-01-08 12:01:53 -05:00

Docker image deploy: scale Heroku app size (#21369)

* Scale Heroku app size

* Make Heroku key a job level env var
This commit is contained in:
Robert Sese
2021-09-09 12:17:17 -05:00
committed by GitHub
parent aba6093d5f
commit 87db4aee2f

View File

@@ -20,6 +20,8 @@ env:
jobs:
prepare:
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_TOKEN }}
if: >-
${{
github.event.workflow_run.conclusion == 'success' &&
@@ -126,9 +128,11 @@ 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
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_TOKEN }}
run: |
docker image build --target production_early_access -t registry.heroku.com/${{ steps.create-app.outputs.app_name}}/web .
heroku container:login