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
ef547f4e
Commit
ef547f4e
authored
4 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Pull with CI.
parent
87dc4a2f
No related branches found
No related tags found
No related merge requests found
Pipeline
#550
passed
4 years ago
Stage: test
Stage: build
Stage: deploy
Stage: pull
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+22
-0
22 additions, 0 deletions
.gitlab-ci.yml
deploy
+0
-1
0 additions, 1 deletion
deploy
with
22 additions
and
1 deletion
.gitlab-ci.yml
+
22
−
0
View file @
ef547f4e
...
...
@@ -9,6 +9,7 @@ stages:
-
test
-
build
-
deploy
-
pull
build
:
extends
:
.compose-build
...
...
@@ -17,3 +18,24 @@ build:
push
:
extends
:
.compose-push
tags
:
[
ns4.shore.co.il
]
pull-ns4
:
image
:
registry.shore.co.il/ci-images:docker
stage
:
pull
tags
:
[
ns4.shore.co.il
]
script
:
-
docker-compose pull --quiet
pull-host01
:
image
:
registry.shore.co.il/ci-images:docker
stage
:
pull
tags
:
[
host01.shore.co.il
]
script
:
-
docker-compose pull --quiet
pull-kodi
:
image
:
registry.shore.co.il/ci-images:docker
stage
:
pull
tags
:
[
kodi.shore.co.il
]
script
:
-
docker-compose pull --quiet
This diff is collapsed.
Click to expand it.
deploy
+
0
−
1
View file @
ef547f4e
...
...
@@ -11,7 +11,6 @@ _deploy() {
echo
"Deploying to
$1
"
>
&2
export
DOCKER_HOST
=
"ssh://
$1
"
export
RUNNER_NAME
=
"
$1
"
until
docker-compose pull
--quiet
;
do
true
;
done
until
docker-compose up
--detach
--remove-orphans
;
do
true
;
done
# shellcheck disable=SC2034
for
i
in
$(
seq
12
)
...
...
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