diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d5ae7eea9ee6de0c5bf296b8c028932284fac44a --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,24 @@ +# 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 diff --git a/Dockerfile b/Dockerfile index 5135ae9f3269d77702e9ead16bb09c07329054e3..a48d23bdacd149029d2e2fe7f6bb95b71a0d4772 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ 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 && \