Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-runner-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shore
gitlab-runner-docker
Commits
1c801b16
Commit
1c801b16
authored
4 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Select host in deploy script.
Select the host in the deploy script, default to all hosts.
parent
5f46fedb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#380
passed
4 years ago
Stage: test
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deploy
+17
-8
17 additions, 8 deletions
deploy
with
17 additions
and
8 deletions
deploy
+
17
−
8
View file @
1c801b16
#!/bin/sh
set
-eu
deploy
()
{
_
deploy
()
{
echo
"Deploying to
$1
"
>
&2
export
DOCKER_HOST
=
"ssh://
$1
"
export
RUNNER_NAME
=
"
$1
"
...
...
@@ -25,10 +25,19 @@ then
exit
1
fi
export
REGISTER_RUN_UNTAGGED
=
"true"
export
BUILDS
=
'/builds'
deploy
"ns4.shore.co.il"
export
REGISTER_RUN_UNTAGGED
=
"false"
unset
BUILDS
deploy
"host01.shore.co.il"
deploy
"kodi.shore.co.il"
case
"
${
1
:-
all
}
"
in
ns4
)
export
REGISTER_RUN_UNTAGGED
=
"true"
export
BUILDS
=
'/builds'
_deploy ns4
;;
kodi
)
export
REGISTER_RUN_UNTAGGED
=
"false"
unset
BUILDS
_deploy kodi
;;
host01
)
export
REGISTER_RUN_UNTAGGED
=
"false"
unset
BUILDS
_deploy host01
;;
all
)
deploy ns4
;
deploy host01
;
deploy kodi
;;
*
)
echo
'Unknown host.'
>
&2
;
exit
1
;;
esac
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment