From 6d37fc098bd38d97fe34b00661dcc0aeb9eab4fd Mon Sep 17 00:00:00 2001 From: Yi-Ting Shih Date: Sat, 26 Apr 2025 11:34:56 +0800 Subject: [PATCH] Fix: docker action --- Dockerfile | 7 +++++++ action.yaml | 6 +----- entrypoint.sh | 3 +++ 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 Dockerfile create mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7663160 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/action.yaml b/action.yaml index 5879d34..9790e45 100644 --- a/action.yaml +++ b/action.yaml @@ -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 diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..d608ce3 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env -S sh + +yamllint "${INPUT_CONTEXT}"