This Orb can be used to deploy any app that adopts trunk-based development to AWS OpsWorks.
When a branch is merged into master
, it will deploy to your staging stack and send a Slack
notification. When you approve the CircleCI workflow to continue, it will deploy to your production
stack and notify you on Slack again.
Add the following to your CircleCI configuration:
version: 2.1
orbs:
opsworks: nebulab/opsworks-deployment
workflows:
build-and-deploy:
jobs:
- build
- opsworks/deploy-staging:
app_id: your-staging-opsworks-app-id
stack_id: your-staging-opsworks-stack-id
github_repo: myorg/myrepo
slack_hook_url: https://your.slack.hook.url
requires:
- build
filters:
branches:
only: master
- approve-production:
requires:
- opsworks/deploy-staging
type: approval
filters:
branches:
only: master
- opsworks/deploy-production:
app_id: your-staging-opsworks-app-id
stack_id: your-staging-opsworks-stack-id
github_repo: myorg/myrepo
slack_hook_url: https://your.slack.hook.url
requires:
- approve-production
jobs:
build:
steps:
- run your tests here
The orb-tools Orb is used for publishing development and production versions of this Orb.
Bug reports and pull requests are welcome!
circleci-orbs-opsworks-deployment is copyright © 2019 Nebulab. It is free software, and may be redistributed under the terms specified in the CircleCI Orbs License.
circleci-orbs-opsworks-deployment is funded and maintained by the Nebulab team.
We firmly believe in the power of open-source. Contact us if you like our work and you need help with your project design or development.