change golang version
This commit is contained in:
1 parent
94cd6226ea
commit
51feec3785
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.8.1
|
FROM golang:1.8.7-stretch
|
||||||
|
|
||||||
# Support Raspberry Pi 2 and newer
|
# Support Raspberry Pi 2 and newer
|
||||||
ENV GOARM 7
|
ENV GOARM 7
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ def ansibleize(h)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def get_go_version_from_build_dockerfile()
|
def get_go_version_from_build_dockerfile()
|
||||||
go_regexp = /FROM golang:(\S*).*?/
|
go_regexp = /FROM golang:([\d\.]*).*?/
|
||||||
dockerfile_path = File.expand_path(File.join(File.dirname(__FILE__), 'build', 'Dockerfile'))
|
dockerfile_path = File.expand_path(File.join(File.dirname(__FILE__), 'build', 'Dockerfile'))
|
||||||
go_version = File.readlines(dockerfile_path).select { |line| line.match(go_regexp) }.first.match(go_regexp).captures.first
|
go_version = File.readlines(dockerfile_path).select { |line| line.match(go_regexp) }.first.match(go_regexp).captures.first
|
||||||
if go_version.nil?
|
if go_version.nil?
|
||||||
|
|||||||
Reference in new issue
Block a user