I want to create a 'Deploy to Heroku' button for an open source project. When the button is clicked, I want Heroku to deploy the latest image from Docker hub. How can I achieve this via my app.json manifest?
The app.json schema allows me to set "stack": "container"
to specify that I want to run a container, yet all I have been able to achieve with this setting is to build the container from source, via a heroku.yml file.
From my app.json:
"stack": "container",
"formation": {
"worker": {
"quantity": 1
}
}
From my heroku.yml:
build:
docker:
worker: Dockerfile
The above app.json and heroku.yml files successfully build the container from master on deploy.
How can I pull from Docker Hub on deploy, rather than building from source?