upgrade to go 1.8
This commit is contained in:
parent
9b16f8a021
commit
2eb8b3cd75
11
box.rb
11
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
|
### Copy files
|
||||||
run "mkdir -p /site"
|
run "mkdir -p /site"
|
||||||
|
@ -34,15 +37,15 @@ files = [
|
||||||
|
|
||||||
files.each { |x| put x }
|
files.each { |x| put x }
|
||||||
|
|
||||||
copy "vendor/", "/go/src/"
|
copy "vendor/", "/root/go/src/"
|
||||||
|
|
||||||
### Build
|
### Build
|
||||||
run %q[ cd /site && sh ./build.sh ]
|
run %q[ cd /site && sh ./build.sh ]
|
||||||
debug! if debug?
|
debug! if debug?
|
||||||
|
|
||||||
### Cleanup
|
### Cleanup
|
||||||
run %q[ rm -rf /usr/local/go /go /site/backend ]
|
run %q[ rm -rf /go /site/backend /root/sdk ]
|
||||||
run %q[ apk del go git ]
|
run %q[ apk del git go1.8 ]
|
||||||
|
|
||||||
### Runtime
|
### Runtime
|
||||||
cmd "/site/run.sh"
|
cmd "/site/run.sh"
|
||||||
|
|
Loading…
Reference in New Issue