diff options
| author | Nick White <git@njw.name> | 2020-03-10 14:21:29 +0000 | 
|---|---|---|
| committer | Nick White <git@njw.name> | 2020-03-10 14:21:29 +0000 | 
| commit | 58d15331e982c51e8fdc6fdf0383824b0a007f56 (patch) | |
| tree | 2ba1c2ee651dea30be432f0610809eb7f64e0203 /roles/pipeliner/templates | |
| parent | 277e2224b049778c7cbd5b6bae86e786fda6d34d (diff) | |
Ensure modules are always updated, and that the service allows time for this to happen
Diffstat (limited to 'roles/pipeliner/templates')
| -rw-r--r-- | roles/pipeliner/templates/updatepipeline.j2 | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/roles/pipeliner/templates/updatepipeline.j2 b/roles/pipeliner/templates/updatepipeline.j2 index 5e0e842..43b3c4f 100644 --- a/roles/pipeliner/templates/updatepipeline.j2 +++ b/roles/pipeliner/templates/updatepipeline.j2 @@ -6,7 +6,9 @@ t="/home/{{ ansible_user }}/trainings"  # (they don't work for the go get stage in go 1.11)  export GOPATH="$g"  go get -u rescribe.xyz/bookpipeline/... && \ -cd "$g/src/rescribe.xyz/bookpipeline" && GO111MODULE=on go install ./... && \ +cd "$g/src/rescribe.xyz/bookpipeline" && \ +GO111MODULE=on go get -u rescribe.xyz/bookpipeline/... && \ +GO111MODULE=on go install ./... && \  sudo cp "$g/bin/bookpipeline" /usr/local/bin/ || exit 1  cd "$t" && git pull && \ | 
