Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
f3a186ce
Commit
f3a186ce
authored
6 years ago
by
Mahmood Ali
Browse files
Options
Download
Email Patches
Plain Diff
accept macos host as a env-var with a default
parent
55dea4fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/release/mac-remote-build
+7
-5
scripts/release/mac-remote-build
with
7 additions
and
5 deletions
+7
-5
scripts/release/mac-remote-build
+
7
-
5
View file @
f3a186ce
...
...
@@ -14,17 +14,19 @@ fi
TMP_WORKSPACE
=
"/tmp/nomad-workspace/
$(
date
+%Y-%m-%d-%s
)
"
REPO_REMOTE_PATH
=
"
${
TMP_WORKSPACE
}
/gopath/src/github.com/hashicorp/nomad"
readonly
remote_macos_host
=
${
REMOTE_MACOS_HOST
:-
sharedmac
-bot
}
echo
"Using temp workspace:
${
TMP_WORKSPACE
}
"
echo
echo
'=======>>>> Transfering repository'
ssh
sharedmac-bot
mkdir
-p
"
${
REPO_REMOTE_PATH
}
"
ssh
${
remote_macos_host
}
mkdir
-p
"
${
REPO_REMOTE_PATH
}
"
rsync
-az
\
"
${
REPO
}
/.git"
\
"
sharedmac-bot
:
${
REPO_REMOTE_PATH
}
"
"
${
remote_macos_host
}
:
${
REPO_REMOTE_PATH
}
"
echo
'=======>>>> Compiling Mac Binaries'
cat
<<
'
EOF
' | ssh
sharedmac-bot
/bin/bash -s "
${
TMP_WORKSPACE
}
"
cat
<<
'
EOF
' | ssh
${
remote_macos_host
}
/bin/bash -s "
${
TMP_WORKSPACE
}
"
set -o errexit
set -o xtrace
...
...
@@ -68,6 +70,6 @@ compile
EOF
echo
'=======>>>> Retreiving mac compiled binaries'
rsync
-avz
--ignore-existing
sharedmac-bot
:
"
${
REPO_REMOTE_PATH
}
/pkg/"
"
${
REPO
}
/pkg"
rsync
-avz
--ignore-existing
${
remote_macos_host
}
:
"
${
REPO_REMOTE_PATH
}
/pkg/"
"
${
REPO
}
/pkg"
ssh
sharedmac-bot
rm
-rf
"
${
TMP_WORKSPACE
}
"
ssh
${
remote_macos_host
}
rm
-rf
"
${
TMP_WORKSPACE
}
"
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help