mirror of
https://github.com/hadolint/hadolint-action.git
synced 2026-05-15 06:35:55 +00:00
Replace outdated docker images
sdesbure/yamllint hasn't been updated in 4 years zemanlx/container-structure-test:v1.8.0-alpine is no longer maintained sdesbure/* replaced with pipelinecomponents/yamllint:0.34.0 zemanlx/* replaced with with ghcr.io/googlecontainertools/container-structure-test:1.19.3 Signed-off-by: Raymond Etornam <retornam@users.noreply.github.com>
This commit is contained in:
parent
7165d3aeae
commit
49702b1d8b
1 changed files with 4 additions and 3 deletions
7
Makefile
7
Makefile
|
|
@ -1,11 +1,12 @@
|
|||
|
||||
IMAGE_NAME:=hadolint-action
|
||||
|
||||
YAMLLINT_VERSION:=0.34.0
|
||||
HADOLINT_VERSION:=1.19.3
|
||||
lint-dockerfile: ## Runs hadolint against application dockerfile
|
||||
@docker run --rm -v "$(PWD):/data" -w "/data" hadolint/hadolint hadolint Dockerfile
|
||||
|
||||
lint-yaml: ## Lints yaml configurations
|
||||
@docker run --rm -v "$(PWD):/yaml" sdesbure/yamllint yamllint .
|
||||
@docker run --rm -v "$(PWD):/yaml" pipelinecomponents/yamllint:$(YAMLLINT_VERSION) yamllint .
|
||||
|
||||
build: ## Builds the docker image
|
||||
@docker build . -t $(IMAGE_NAME)
|
||||
|
|
@ -13,7 +14,7 @@ build: ## Builds the docker image
|
|||
test: build ## Runs a test in the image
|
||||
@docker run -i --rm \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v ${PWD}:/test zemanlx/container-structure-test:v1.8.0-alpine \
|
||||
-v ${PWD}:/test ghcr.io/googlecontainertools/container-structure-test:$(HADOLINT_VERSION) \
|
||||
test \
|
||||
--image $(IMAGE_NAME) \
|
||||
--config test/structure-tests.yaml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue