This commit is contained in:
7
Dockerfile
Normal file
7
Dockerfile
Normal 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"]
|
||||||
@@ -8,11 +8,7 @@ inputs:
|
|||||||
description: The context of the build environment
|
description: The context of the build environment
|
||||||
required: false
|
required: false
|
||||||
default: .
|
default: .
|
||||||
image:
|
|
||||||
description: The image of yamllint
|
|
||||||
required: false
|
|
||||||
default: gitea.konchin.com/image/yamllint:main
|
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: docker
|
using: docker
|
||||||
image: ${{ inputs.image }}
|
image: Dockerfile
|
||||||
|
|||||||
3
entrypoint.sh
Normal file
3
entrypoint.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env -S sh
|
||||||
|
|
||||||
|
yamllint "${INPUT_CONTEXT}"
|
||||||
Reference in New Issue
Block a user