From 2eb8b3cd75085a49cff7a6865b01f28a11b45e35 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 25 Mar 2017 11:01:52 -0700 Subject: [PATCH] upgrade to go 1.8 --- box.rb | 11 +++++++---- build.sh | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/box.rb b/box.rb index 469c42e..14efa43 100644 --- a/box.rb +++ b/box.rb @@ -1,4 +1,7 @@ -from "xena/go:1.7.4" +from "xena/go-mini:1.8" + +### setup go +run "go1.8 download" ### Copy files run "mkdir -p /site" @@ -34,15 +37,15 @@ files = [ files.each { |x| put x } -copy "vendor/", "/go/src/" +copy "vendor/", "/root/go/src/" ### Build run %q[ cd /site && sh ./build.sh ] debug! if debug? ### Cleanup -run %q[ rm -rf /usr/local/go /go /site/backend ] -run %q[ apk del go git ] +run %q[ rm -rf /go /site/backend /root/sdk ] +run %q[ apk del git go1.8 ] ### Runtime cmd "/site/run.sh" diff --git a/build.sh b/build.sh index 385f401..cd4429d 100755 --- a/build.sh +++ b/build.sh @@ -7,5 +7,5 @@ export PATH="$PATH:/usr/local/go/bin" export CI="true" cd /site/backend/christine.website -go build -v +go1.8 build -v mv christine.website /usr/bin