summaryrefslogtreecommitdiff
path: root/roles/pipeliner/templates/updatepipeline.j2
blob: 5b76f9af15eda30b9c761b4fc9401529c5589d69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
g="/home/{{ ansible_user }}/src/go"
t="/home/{{ ansible_user }}/trainings"

# The extra go install step ensures that go modules are used
# (they don't work for the go get stage in go 1.11)
export GOPATH="$g"
cd "$g/src/rescribe.xyz/bookpipeline" && \
git pull && \
GO111MODULE=on go install ./... && \
sudo cp "$g/bin/bookpipeline" /usr/local/bin/ || exit 1

cd "$t" && git pull && \
sudo cp "$t"/* /usr/local/share/tesseract-ocr/tessdata/