Fix: docker action
Some checks failed
Lint with yamllint / lint (push) Failing after -15s

This commit is contained in:
2025-04-26 11:34:56 +08:00
parent 54ae32498d
commit 6d37fc098b
3 changed files with 11 additions and 5 deletions

7
Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM gitea.konchin.com/image/alpine:latest
RUN apk --no-cache add --no-check-certificate yamllint
ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/usr/bin/env", "-S"]
CMD ["sh", "/entrypoint.sh"]

View File

@@ -8,11 +8,7 @@ inputs:
description: The context of the build environment
required: false
default: .
image:
description: The image of yamllint
required: false
default: gitea.konchin.com/image/yamllint:main
runs:
using: docker
image: ${{ inputs.image }}
image: Dockerfile

3
entrypoint.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env -S sh
yamllint "${INPUT_CONTEXT}"