porter.yaml
file.
porter.yaml
file. The below documentation is for v2
.web
, worker
, or job
.build
or image
can be set.
docker
or pack
.docker
.pack
.pack
.build
or image
can be set.
version
string
- required
name
string
- optional
Either name
must or the PORTER_APP_NAME
environment variable must be set when running porter apply
.
services
array
- required
build
object
- optional
image
object
- optional
env
object
- optional
predeploy
object
- optional
autoRollback
object
- optional
When this attribute is enabled, Porter will automatically rollback all services in the app to the latest previously successfully-deployed version if the any service of the new version fails to deploy.