summaryrefslogtreecommitdiff
path: root/roles/pipeliner/templates/updatepipeline.j2
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-10-16 14:54:24 +0100
committerNick White <git@njw.name>2019-10-16 14:54:24 +0100
commit0d8bcbfd9a7f7ba4fd884c91e19835f8b3bf1a70 (patch)
tree7382c4a5c37dbe05c2266ca93532877cdf299887 /roles/pipeliner/templates/updatepipeline.j2
parent258df96af944b3665e827144fb577179837e2d86 (diff)
Update pipeliner to update before running bookpipeline, and with latest urls
Diffstat (limited to 'roles/pipeliner/templates/updatepipeline.j2')
-rw-r--r--roles/pipeliner/templates/updatepipeline.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/pipeliner/templates/updatepipeline.j2 b/roles/pipeliner/templates/updatepipeline.j2
new file mode 100644
index 0000000..9a375ca
--- /dev/null
+++ b/roles/pipeliner/templates/updatepipeline.j2
@@ -0,0 +1,5 @@
+#!/bin/sh
+g="/home/{{ ansible_user }}/src/go"
+
+GOPATH="$g" go get -u rescribe.xyz/bookpipeline/... && \
+sudo cp "$g/bin/bookpipeline" /usr/local/bin/