Verified Commit b14162de authored by anarcat's avatar anarcat
Browse files

stop using third-party markdownlint image

We keep hitting rate limits, and markdownlint is in debian since
bookworm-backports, so we should be safe.

This is going to be a bit slower as we need to install the package,
but it seems like a minor tweak. If this becomes a problem, we could
make a linter image that ships stuff like mdl and codespell.
parent 84915c47
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -56,13 +56,12 @@ linkcheck:
# `changed-files.txt` artifact from that stage, regardless of the job
# which generated it.
mdlint:
  image:
    name: markdownlint/markdownlint
    entrypoint: [""]
  image: containers.torproject.org/tpo/tpa/base-images/debian:stable
  needs:
    - job: find-files
      artifacts: true
  script:
    - apt update && apt install -yy markdownlint
    - |
      echo "working on files: $(cat changed-files.txt)"
    - ./bin/mdl-wrapper $(cat changed-files.txt)
@@ -76,12 +75,12 @@ mdlint:
# changed, so it doesn't require the above
mdlintall:
  image:
    name: markdownlint/markdownlint
    entrypoint: [""]
  image: containers.torproject.org/tpo/tpa/base-images/debian:stable
  needs:
    - job: find-files
      artifacts: true
  script:
    - apt update && apt install -yy markdownlint
    - echo 'this is important to get the return value of mdl, not grep'
    - set -o pipefail
    - |