Learn how to automate and integrate your WebOps workflow with Quicksilver.Discuss in our Forum Discuss in Slack
Quicksilver hooks into platform workflows to automate your Pantheon WebOps workflow. This allows the platform to run selected scripts automatically every hour, or when a team member triggers the corresponding workflow. There is a growing set of example scripts available for review and contributions. Several scripts enable additional functionality, including:
- Database sanitization
- Deployment logging
- Automated testing operations with a CI server
WebOps Workflow and Stage
You can specify the workflows you want to hook into, for example,
sync_code. You can also specify the workflow stage (
after) and the location of the script relative to the root of your site's docroot.
The adapted slack_notification example below provides steps to post to Slack every time you deploy.
Commit a pantheon.yml file with the following content:pantheon.yml
api_version: 1 workflows: deploy: after: - type: webphp description: Post deployment notification to Slack script: private/scripts/slack_deploy_notification.php
Add the code below if you want the script to automatically log the deployment to New Relic:pantheon.yml
- type: webphp description: Log to New Relic script: private/scripts/new_relic_deploy.php