Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hadolint check #3

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ repos:
language: docker_image
entry: rhysd/actionlint:1.6.26
files: ^\.github/workflows/.*\.yml$

- id: hadolint
name: Lint Dockerfiles
language: docker_image
entry: hadolint/hadolint hadolint
files: Dockerfile
6 changes: 6 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@
language: docker_image
entry: rhysd/actionlint:1.6.26
files: ^\.github/workflows/.*\.yml$

- id: hadolint
name: Lint Dockerfiles
language: docker_image
entry: hadolint/hadolint hadolint
files: Dockerfile
3 changes: 2 additions & 1 deletion ltex/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM openjdk:11.0.16-jre

ARG LTEX_VERSION=16.0.0
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

RUN <<EOF
wget https://github.com/valentjn/ltex-ls/releases/download/${LTEX_VERSION}/ltex-ls-${LTEX_VERSION}.tar.gz -O - | tar -xz
wget --quiet https://github.com/valentjn/ltex-ls/releases/download/${LTEX_VERSION}/ltex-ls-${LTEX_VERSION}.tar.gz -O - | tar -xz
mv /ltex-ls-${LTEX_VERSION} /ltex-ls
EOF

Expand Down
Loading