.aptible.yml
when deploying from Docker Image. In practice, this means you should not need to use a companion git repository anymore. For more information, review Procfiles and .aptible.yml
with Direct Docker Image Deploy. CMD
to know which service command to run, you can create a separate App, or add a Procfile via a companion git repository.
To do so, create a new empty git repository containing a Procfile, and include all your services in the Procfile.
For example:
master
branch to trigger a deploy:
.aptible.yml
file.
Generally, we recommend architecting your app to avoid the need for a .aptible.yml file when using Direct Docker Image deploy, but if you’d like to use one nonetheless, you can.
To do so, create new empty git repository containing a .aptible.yml file, and include your desired configuration in it.
For example:
master
branch to trigger a deploy:
before_release
commands;
aptible deploy
, but add the --git-commitish
argument, like so:
$BRANCH
represents the remote branch you pushed your updated files to. In the git push
example above, that’s update-the-Procfile
.