Skip to content

nebulab/circleci-orbs-opsworks-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

OpsWorks Deployment CircleCI Orb

opsworks-deployment

Description

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.

Usage

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

Publishing

The orb-tools Orb is used for publishing development and production versions of this Orb.

Contributing

Bug reports and pull requests are welcome!

License

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.

About

Nebulab

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.

About

An Orb to deploy your trunk-based applications to OpsWorks.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published