summaryrefslogtreecommitdiffstats
path: root/tests/roles/github-buildah/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/roles/github-buildah/tasks/main.yml')
-rw-r--r--tests/roles/github-buildah/tasks/main.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/roles/github-buildah/tasks/main.yml b/tests/roles/github-buildah/tasks/main.yml
new file mode 100644
index 0000000..71edef8
--- /dev/null
+++ b/tests/roles/github-buildah/tasks/main.yml
@@ -0,0 +1,21 @@
+---
+- name: pull latest buildah source from github
+ git:
+ repo: https://github.com/projectatomic/buildah
+ dest: "{{ ansible_env.HOME }}/go/src/github.com/projectatomic/buildah"
+
+- name: make binary for buildah
+ command: make
+ args:
+ chdir: "{{ ansible_env.HOME }}/go/src/github.com/projectatomic/buildah"
+
+- name: install buildah to /usr/local/bin
+ command: make install
+ args:
+ chdir: "{{ ansible_env.HOME }}/go/src/github.com/projectatomic/buildah"
+
+- name: copy buildah to /usr/bin
+ copy:
+ remote_src: True
+ src: "{{ ansible_env.HOME }}/go/src/github.com/projectatomic/buildah/buildah"
+ dest: /usr/bin/buildah