Puppet Forge Deployment
Travis CI can automatically deploy your modules to Puppet Forge or to your own Forge instance after a successful build.
To deploy to Puppet Forge, add your Puppet Forge username and your
encrypted Puppet Forge password to your
deploy: provider: puppetforge user: "<Your username>" password: secure: "YOUR ENCRYPTED PASSWORD"
Deploying to a custom forge #
To deploy to your own hosted Forge instance by adding it in the
You can explicitly set the name via the app option:
deploy: provider: puppetforge user: "<Your username>" password: secure: "YOUR ENCRYPTED PASSWORD" url: https://forgeapi.example.com/
Running commands before and after deploy #
Sometimes you want to run commands before or after deploying. You can use
after_deploy stages for this. These will only be
triggered if Travis CI is actually deploying.
before_deploy: "echo 'ready?'" deploy: .. after_deploy: - ./after_deploy_1.sh - ./after_deploy_2.sh