diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 35a5b19..4b12eea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,7 @@ repos: - repo: . - rev: 8a0a3b129b0d87bdc046b68dddb1c29bd9f708d1 + rev: 623c6100b9b044f59431bbfef50ebfc540a0619e hooks: - id: downstream - id: downstream-docker + - id: downstream-docker-image diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 4e91cfd..3b5c35c 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -11,3 +11,9 @@ entry: downstream language: docker verbose: true +- id: downstream-docker-image + name: DownstreamDockerImage + description: Alerts the user to downstream dependencies of the files updated + entry: twoffles/downstream:0.4.0 + language: docker_image + verbose: true diff --git a/Dockerfile b/Dockerfile index 9ed7aae..32b25b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,9 @@ FROM swift:5.5.2 -RUN git clone -b 0.2.0 https://github.com/twof/Downstream.git && \ +RUN git clone -b 0.3.0 https://github.com/twof/Downstream.git && \ cd Downstream && \ swift build -c release && \ + chmod +x .build/release/downstream && \ cp -f .build/release/downstream /usr/local/bin/downstream + +ENTRYPOINT ["downstream"]