Skip to content

Commit

Permalink
chore(ci): Ignore hadolint DL3006
Browse files Browse the repository at this point in the history
> Always tag the version of an image explicitly

Hadolint is unaware that the final FROM image is based on one of the two FROM's above, both of which are tagged. Therefore this is a false positive.
  • Loading branch information
USA-RedDragon committed Feb 11, 2024
1 parent 68249a9 commit 3dd2237
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ FROM cm2network/steamcmd:root as base-amd64
FROM --platform=arm64 sonroyaalmerol/steamcmd-arm64:latest as base-arm64

Check failure on line 18 in Dockerfile

View workflow job for this annotation

GitHub Actions / Lint - Docker

DL3007 warning: Using latest is prone to errors if the image will ever update. Pin the version explicitly to a release tag

ARG TARGETARCH
# Ignoring the lack of a tag here because the tag is defined in the above FROM lines
# and hadolint isn't aware of those.
# hadolint ignore=DL3006
FROM base-${TARGETARCH}

LABEL maintainer="[email protected]" \
Expand Down

0 comments on commit 3dd2237

Please sign in to comment.