Refactor: wrap with entrypoint
All checks were successful
Build and push image / release-image (push) Successful in 31s

This commit is contained in:
2025-04-26 11:20:05 +08:00
parent 34f22e1388
commit 03928e30b9
2 changed files with 6 additions and 2 deletions

View File

@@ -1,6 +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"]
CMD ["yamllint", "."]
ENTRYPOINT ["/usr/bin/env", "-S"]
CMD ["sh", "/entrypoint.sh"]

3
entrypoint.sh Normal file
View File

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