Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
secondary-dns-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
secondary-dns-docker
Commits
8107a31c
Commit
8107a31c
authored
4 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Use CI templates.
parent
790fda2d
No related branches found
No related tags found
No related merge requests found
Pipeline
#295
failed
4 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+9
-40
9 additions, 40 deletions
.gitlab-ci.yml
with
9 additions
and
40 deletions
.gitlab-ci.yml
+
9
−
40
View file @
8107a31c
---
image
:
adarnimrod/ci-images:docker
include
:
-
project
:
shore/ci-templates
file
:
templates/pre-commit.yml
-
project
:
shore/ci-templates
file
:
templates/docker-compose.yml
stages
:
-
test
-
build
-
run
pre-commit
:
stage
:
test
image
:
adarnimrod/ci-images:pre-commit
variables
:
XDG_CACHE_HOME
:
"
$CI_PROJECT_DIR/.cache"
# Disabled until https://github.com/pre-commit/pre-commit/issues/1387 is
# resolved.
SKIP
:
"
hadolint,docker-compose"
script
:
-
pre-commit run --all-files
cache
:
paths
:
-
.cache/
build
:
stage
:
build
tags
:
[
"
ns4.shore.co.il"
]
variables
:
COMPOSE_DOCKER_CLI_BUILD
:
"
1"
DOCKER_BUILDKIT
:
"
1"
script
:
-
docker-compose build --no-cache --pull
-
docker-compose pull --quiet
extends
:
.compose-build
tags
:
[
ns4.shore.co.il
]
run
:
stage
:
run
tags
:
[
"
ns4.shore.co.il"
]
when
:
manual
script
:
-
docker-compose up --detach --remove-orphans
# yamllint disable rule:line-length
-
|
for i in $(seq 12)
do
docker container inspect --format '{{ .State.Health.Status }}' $(docker-compose ps -q) | grep -v '^healthy$' || break
sleep 10
done
! docker container inspect --format '{{ .State.Health.Status }}' $(docker-compose ps -q) | grep -v '^healthy$'
extends
:
.compose-run
tags
:
[
ns4.shore.co.il
]
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