Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use dist version for docker deploy.
[ci skip]
  • Loading branch information
brixen committed Feb 23, 2016
1 parent 50969f8 commit a8b3449
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/deploy.sh
Expand Up @@ -26,6 +26,10 @@ function rbx_url_prefix {
echo "https://${bucket}.s3-us-west-2.amazonaws.com"
}

function rbx_dist_version {
egrep -o '[[:digit:]]+\.[[:digit:]]+' /etc/issue
}

function rbx_upload_files {
local bucket dest src path url name index
local -a file_exts
Expand Down Expand Up @@ -108,7 +112,7 @@ function rbx_deploy_travis_binary {
declare -a paths os_releases versions

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

local version release file url response sha
local -a paths=("12.04")
local -a paths=($(rbx_dist_version))

version=$(rbx_revision_version)
release=$(rbx_release_name)
Expand Down

0 comments on commit a8b3449

Please sign in to comment.