Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
container-manager
Commits
bd61b28a
Commit
bd61b28a
authored
Oct 24, 2018
by
Mohamed, Fawzi Roberto (fawzi)
Browse files
deploy.sh: nopush option
parent
f8cfd2b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy.sh
View file @
bd61b28a
...
...
@@ -29,6 +29,9 @@ do
buildDocker
=
""
updateDeploy
=
1
;;
--no-push
)
noPush
=
1
;;
--secret-web-certs
)
shift
secretWebCerts
=
${
1
:-
web
-certs
}
...
...
@@ -50,7 +53,7 @@ do
chownRoot
=
$1
;;
*
)
echo
"usage:
$0
[--debug] [--tls] [--nomad-root <pathToNomadRoot>] [--chown-root <pathForPrometheusVolumes>] [--env <NODE_ENV_VALUE>] [--docker-only] [--docker-skip] [--target-hostname hostname] [--secret-web-certs <secretName>] [--always-pull]"
echo
"usage:
$0
[--debug] [--tls] [--nomad-root <pathToNomadRoot>] [--chown-root <pathForPrometheusVolumes>] [--env <NODE_ENV_VALUE>] [--docker-only] [--docker-skip] [--target-hostname hostname] [--secret-web-certs <secretName>] [--always-pull]
[--no-push]
"
echo
echo
"Env variables: NODE_ENV, target_hostname, nomadRoot"
echo
"Examples:"
...
...
@@ -68,7 +71,9 @@ version=$(git describe --tags --always --dirty)
name
=
"analytics-toolkit.nomad-coe.eu:5509/nomadlab/nomad-container-manager:
$version
"
if
[
-n
"
$buildDocker
"
]
;
then
docker build
-t
$name
.
docker push
$name
if
[
-z
"
$noPush
"
]
;
then
docker push
$name
fi
fi
if
[
-n
"
$alwaysPull
"
]
;
then
pullPolicy
=
Always
...
...
Write
Preview
Markdown
is supported
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