Skip to content

Commit

Permalink
Add ansible workflow example
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
ivotron committed Jun 19, 2020
1 parent 4479663 commit 8d42f8b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
This folder contains examples on how to make use of Popper in distinct
contexts:

* [Continuous Integration (CI)](./ci/). A list of starter workflows
for using Popper to continuously test your project.
* [Continuous Integration (CI)](./ci/). Starter workflows for using
Popper to continuously build and test your project.

* [Continuous Deployment (CD)](./cd/). Examples on how to run CD
workflows.
12 changes: 12 additions & 0 deletions examples/cd/ansible.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This makes use of this image:
# https://github.com/getpopper/library/tree/ac799ea/ansible
steps:
- id: deploy
uses: docker://getpopper/ansible:v2.9.7
args: ['-i', 'hosts.yaml', 'site.yml']
env:
ANSIBLE_LOG_PATH: ./ansible.log
ANSIBLE_SSH_CONTROL_PATH: /dev/shm/cp%%h-%%p-%%r
ANSIBLE_HOST_KEY_CHECKING: false
secrets:
- ANSIBLE_SSH_KEY_DATA

0 comments on commit 8d42f8b

Please sign in to comment.