Skip to content

Commit 97a73b8

Browse files
Add ansible test
1 parent 559c68e commit 97a73b8

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.hookshot.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ task = "release"
66
notify_url = "http://localhost:5600"
77

88
[tag."*"]
9-
task = "test-hook"
9+
method = "ansible"
10+
inventory = "test/ansible/inventory"
11+
playbook = "test/ansible/test-playbook.yml"

test/ansible/inventory

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
127.0.0.1

test/ansible/test-playbook.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
- hosts: 127.0.0.1
2+
connection: local
3+
sudo: no
4+
tasks:
5+
- name: test action
6+
copy: content="{{ git_ref }} | {{ git_commit_sha }}"
7+
dest="/tmp/hookshot_git_data.txt"

0 commit comments

Comments
 (0)