Skip to content

Commit

Permalink
Merge pull request #8 from twof/dockerImageSupport
Browse files Browse the repository at this point in the history
Add downstream-docker-image
  • Loading branch information
twof committed Dec 28, 2021
2 parents 026568f + b8cbf93 commit 28cc538
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
repos:
- repo: .
rev: 8a0a3b129b0d87bdc046b68dddb1c29bd9f708d1
rev: 623c6100b9b044f59431bbfef50ebfc540a0619e
hooks:
- id: downstream
- id: downstream-docker
- id: downstream-docker-image
6 changes: 6 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 28cc538

Please sign in to comment.