Skip to content

Commit 5af827b

Browse files
committed
chore: fix linter version
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent ac2cd54 commit 5af827b

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/hoverkraft-tech/docker-base-images/super-linter:0.6.0
1+
FROM ghcr.io/hoverkraft-tech/docker-base-images/super-linter:0.4.0
22

33
HEALTHCHECK --interval=5m --timeout=10s --start-period=30s --retries=3 CMD ["/bin/sh","-c","test -d /github/home"]
44
ARG UID=1000

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ define run_linter
3737
DEFAULT_WORKSPACE="$(CURDIR)"; \
3838
LINTER_IMAGE="linter:latest"; \
3939
VOLUME="$$DEFAULT_WORKSPACE:$$DEFAULT_WORKSPACE"; \
40-
docker build --build-arg UID=$(shell id -u) --build-arg GID=$(shell id -g) --tag $$LINTER_IMAGE .; \
40+
docker build --platform linux/amd64 --build-arg UID=$(shell id -u) --build-arg GID=$(shell id -g) --tag $$LINTER_IMAGE .; \
4141
docker run \
42+
--platform linux/amd64 \
43+
-v $$VOLUME \
44+
--rm \
4245
-e DEFAULT_WORKSPACE="$$DEFAULT_WORKSPACE" \
4346
-e FILTER_REGEX_INCLUDE="$(filter-out $@,$(MAKECMDGOALS))" \
4447
$(1) \
45-
-v $$VOLUME \
46-
--rm \
4748
$$LINTER_IMAGE
4849
endef
4950

0 commit comments

Comments
 (0)