Skip to content

Commit a8b3449

Browse files
committedFeb 23, 2016
Use dist version for docker deploy.
[ci skip]
1 parent 50969f8 commit a8b3449

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

Diff for: ‎scripts/deploy.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ function rbx_url_prefix {
2626
echo "https://${bucket}.s3-us-west-2.amazonaws.com"
2727
}
2828

29+
function rbx_dist_version {
30+
egrep -o '[[:digit:]]+\.[[:digit:]]+' /etc/issue
31+
}
32+
2933
function rbx_upload_files {
3034
local bucket dest src path url name index
3135
local -a file_exts
@@ -108,7 +112,7 @@ function rbx_deploy_travis_binary {
108112
declare -a paths os_releases versions
109113

110114
if [[ $os_name == linux ]]; then
111-
os_releases=($(cat /etc/issue | egrep -o '[[:digit:]]+\.[[:digit:]]+'))
115+
os_releases=($(rbx_dist_version))
112116
for (( i=0; i < ${#os_releases[@]}; i++ )); do
113117
paths[i]="/ubuntu/${os_releases[i]}/x86_64/"
114118
done
@@ -254,7 +258,7 @@ function rbx_deploy_docker_release {
254258
echo "Deploying Docker release $(rbx_revision_version)..."
255259

256260
local version release file url response sha
257-
local -a paths=("12.04")
261+
local -a paths=($(rbx_dist_version))
258262

259263
version=$(rbx_revision_version)
260264
release=$(rbx_release_name)

0 commit comments

Comments
 (0)
Please sign in to comment.