chore: update Dockerfile and Hadolint configuration

- Add a new configuration file for Hadolint with specific ignored rules
- Change the Dockerfile maintainer label from SSH Plugin to Telegram Plugin
- Update the Dockerfile to remove the specific version of ca-certificates and install the latest version instead

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2024-08-13 23:14:25 +08:00
parent 80e7a36e5e
commit 104ffc4fe7
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
ignored:
- DL3018
- DL3008
+2 -2
View File
@@ -4,7 +4,7 @@ ARG TARGETOS
ARG TARGETARCH ARG TARGETARCH
LABEL maintainer="Bo-Yi Wu <appleboy.tw@gmail.com>" \ LABEL maintainer="Bo-Yi Wu <appleboy.tw@gmail.com>" \
org.label-schema.name="SSH Plugin" \ org.label-schema.name="Telegram Plugin" \
org.label-schema.vendor="Bo-Yi Wu" \ org.label-schema.vendor="Bo-Yi Wu" \
org.label-schema.schema-version="1.0" org.label-schema.schema-version="1.0"
@@ -12,7 +12,7 @@ LABEL org.opencontainers.image.source=https://github.com/appleboy/drone-telegram
LABEL org.opencontainers.image.description="plugin for sending telegram notifications" LABEL org.opencontainers.image.description="plugin for sending telegram notifications"
LABEL org.opencontainers.image.licenses=MIT LABEL org.opencontainers.image.licenses=MIT
RUN apk add --no-cache ca-certificates=20230506-r0 && \ RUN apk add --no-cache ca-certificates && \
rm -rf /var/cache/apk/* rm -rf /var/cache/apk/*
COPY release/${TARGETOS}/${TARGETARCH}/drone-telegram /bin/ COPY release/${TARGETOS}/${TARGETARCH}/drone-telegram /bin/