Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cgit-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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
shore
cgit-docker
Commits
3a653fd1
Commit
3a653fd1
authored
4 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Updates.
I moved to GitLab, so no more deployments. Update README. Add pre-commit hooks.
parent
a67ad417
No related branches found
No related tags found
No related merge requests found
Pipeline
#429
passed
4 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+3
-45
3 additions, 45 deletions
.gitlab-ci.yml
.pre-commit-config.yaml
+29
-10
29 additions, 10 deletions
.pre-commit-config.yaml
README.md
+6
-4
6 additions, 4 deletions
README.md
with
38 additions
and
59 deletions
.gitlab-ci.yml
+
3
−
45
View file @
3a653fd1
---
---
image
:
adarnimrod/ci-images:docker
include
:
-
project
:
shore/ci-templates
stages
:
file
:
templates/pre-commit.yml
-
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
:
[
"
host01.shore.co.il"
]
variables
:
COMPOSE_DOCKER_CLI_BUILD
:
"
1"
DOCKER_BUILDKIT
:
"
1"
script
:
-
docker-compose build --no-cache --pull
-
docker-compose pull --quiet
run
:
stage
:
run
tags
:
[
"
host01.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$'
This diff is collapsed.
Click to expand it.
.pre-commit-config.yaml
+
29
−
10
View file @
3a653fd1
# vim:ff=unix ts=2 sw=2 ai expandtab
---
---
repos
:
repos
:
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
.git
rev
:
v
2.3
.0
rev
:
v
3.4
.0
hooks
:
hooks
:
-
id
:
check-added-large-files
-
id
:
check-added-large-files
-
id
:
check-executables-have-shebangs
-
id
:
check-merge-conflict
-
id
:
check-merge-conflict
-
id
:
detect-private-key
-
id
:
check-symlinks
-
id
:
trailing-whitespace
-
id
:
trailing-whitespace
exclude
:
\.diff$
exclude
:
\.diff$
-
repo
:
https://github.com/Yelp/detect-secrets
rev
:
v0.14.3
hooks
:
-
id
:
detect-secrets
exclude
:
\.diff$
-
repo
:
https://github.com/adrienverge/yamllint
-
repo
:
https://github.com/adrienverge/yamllint
rev
:
v1.
17
.0
rev
:
v1.
25
.0
hooks
:
hooks
:
-
id
:
yamllint
-
id
:
yamllint
-
repo
:
https://github.com/amperser/proselint/
-
repo
:
https://github.com/amperser/proselint/
rev
:
0.10.2
rev
:
0.10.2
hooks
:
hooks
:
-
id
:
proselint
-
id
:
proselint
types
:
[
plain-text
]
types
:
[
plain-text
]
exclude
:
LICENSE
exclude
:
LICENSE
-
repo
:
https://github.com/executablebooks/mdformat.git
rev
:
0.5.3
hooks
:
-
id
:
mdformat
-
repo
:
https://git.shore.co.il/nimrod/shell-pre-commit.git
rev
:
v0.6.0
hooks
:
-
id
:
shell-lint
-
repo
:
https://github.com/shellcheck-py/shellcheck-py.git
rev
:
v0.7.1.1
hooks
:
-
id
:
shellcheck
-
repo
:
https://git.shore.co.il/nimrod/docker-pre-commit.git/
-
repo
:
https://git.shore.co.il/nimrod/docker-pre-commit.git/
rev
:
v0.3.0
rev
:
v0.3.0
hooks
:
hooks
:
-
id
:
hadolint
-
id
:
hadolint
-
id
:
docker-compose
-
id
:
docker-compose
-
repo
:
https://github.com/Yelp/detect-secrets
rev
:
v0.13.0
hooks
:
-
id
:
detect-secrets
exclude
:
\.diff$
This diff is collapsed.
Click to expand it.
README.md
+
6
−
4
View file @
3a653fd1
# cgit
# cgit
[

](https://git.shore.co.il/shore/cgit-docker/-/commits/master)
> cgit Docker image.
> cgit Docker image.
## Usage
## Usage
...
@@ -24,7 +26,7 @@ This software is licensed under the MIT license (see `LICENSE.txt`).
...
@@ -24,7 +26,7 @@ This software is licensed under the MIT license (see `LICENSE.txt`).
## Author Information
## Author Information
Nimrod Adar,
[
contact me
](
mailto:nimrod@shore.co.il
)
or visit my
[
website
](
Nimrod Adar,
[
contact me
](
mailto:nimrod@shore.co.il
)
or visit my
https://www.shore.co.il/
)
. Patches are welcome via
[
`git send-email`
](
[
website
](
https://www.shore.co.il/
)
. Patches are welcome via
http://git-scm.com/book/en/v2/Git-Commands-Email
)
. The repository
is located
[
`git send-email`
](
http://git-scm.com/book/en/v2/Git-Commands-Email
)
. The repository
at:
<https://
www
.shore.co.il/
git
/>
.
is located
at:
<https://
git
.shore.co.il/
expore
/>
.
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