Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cron-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
nimrod
cron-docker
Commits
35526d70
Commit
35526d70
authored
5 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Pre-commit.
Add pre-commit hooks. Fix warning from hadolint.
parent
7eaa0f45
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.pre-commit-config.yaml
+24
-0
24 additions, 0 deletions
.pre-commit-config.yaml
Dockerfile
+2
-2
2 additions, 2 deletions
Dockerfile
with
26 additions
and
2 deletions
.pre-commit-config.yaml
0 → 100644
+
24
−
0
View file @
35526d70
# vim:ff=unix ts=2 sw=2 ai expandtab
---
repos
:
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v2.4.0
hooks
:
-
id
:
check-added-large-files
-
id
:
check-merge-conflict
-
id
:
trailing-whitespace
exclude
:
\.diff$
-
repo
:
https://github.com/adrienverge/yamllint
rev
:
v1.19.0
hooks
:
-
id
:
yamllint
-
repo
:
https://github.com/amperser/proselint/
rev
:
0.10.2
hooks
:
-
id
:
proselint
types
:
[
plain-text
]
exclude
:
LICENSE
-
repo
:
https://www.shore.co.il/git/docker-pre-commit
rev
:
v0.3.0
hooks
:
-
id
:
hadolint
This diff is collapsed.
Click to expand it.
Dockerfile
+
2
−
2
View file @
35526d70
FROM
alpine:3.10
as
downloader
ARG
URL=https://github.com/aptible/supercronic/releases/download/v0.1.9/supercronic-linux-amd64
ARG
SHA1SUM=5ddf8ea26b56d4a7ff6faecdd8966610d5cb9d85
RUN
cd
/tmp
&&
\
wget
$URL
&&
\
WORKDIR
/tmp
RUN
wget
$URL
&&
\
echo
"
$SHA1SUM
supercronic-linux-amd64"
>
sha1.sum
&&
\
sha1sum
-c
sha1.sum
&&
\
install
-m
755 supercronic-linux-amd64 /usr/local/bin/supersonic
&&
\
...
...
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