Skip to content

Commit

Permalink
ci: improve Dockerfile and linting configuration
Browse files Browse the repository at this point in the history
- Add .hadolint.yaml file and ignore rule DL3018
- Update Dockerfile to remove specific package versions in apk add command

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Jul 1, 2023
1 parent 4325234 commit 4bfdb6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .hadolint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignored:
- DL3018
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ LABEL org.opencontainers.image.source=https://github.com/appleboy/drone-git-push
LABEL org.opencontainers.image.description="Drone Git Push"
LABEL org.opencontainers.image.licenses=MIT

RUN apk add --no-cache ca-certificates=20230506-r0 git=2.38.5-r0 openssh=9.1_p1-r2 curl=8.0.1-r0 perl=5.36.0-r1 && \
RUN apk add --no-cache ca-certificates git openssh curl perl && \
rm -rf /var/cache/apk/*

COPY release/${TARGETOS}/${TARGETARCH}/drone-git-push /bin/
Expand Down

0 comments on commit 4bfdb6d

Please sign in to comment.