From c4b46be396f99fad7a70e716789194d0841124f2 Mon Sep 17 00:00:00 2001 From: Alex Reilly Date: Mon, 27 Dec 2021 15:46:30 -0800 Subject: [PATCH 1/3] add downstream-docker-image --- .pre-commit-config.yaml | 1 + .pre-commit-hooks.yaml | 6 ++++++ Dockerfile | 4 +++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 35a5b19..dfa1305 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,3 +4,4 @@ repos: hooks: - id: downstream - id: downstream-docker + - id: downstream-docker-image diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 4e91cfd..7ec1e53 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: https://hub.docker.com/r/twoffles/downstream:0.4.0 + language: docker_image + verbose: true diff --git a/Dockerfile b/Dockerfile index 9ed7aae..90c1d80 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ 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 && \ cp -f .build/release/downstream /usr/local/bin/downstream + +ENTRYPOINT ['downstream'] From 623c6100b9b044f59431bbfef50ebfc540a0619e Mon Sep 17 00:00:00 2001 From: Alex Reilly Date: Mon, 27 Dec 2021 15:53:10 -0800 Subject: [PATCH 2/3] change reference format --- .pre-commit-config.yaml | 2 +- .pre-commit-hooks.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dfa1305..75caa5e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: . - rev: 8a0a3b129b0d87bdc046b68dddb1c29bd9f708d1 + rev: c4b46be396f99fad7a70e716789194d0841124f2 hooks: - id: downstream - id: downstream-docker diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 7ec1e53..3b5c35c 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -14,6 +14,6 @@ - id: downstream-docker-image name: DownstreamDockerImage description: Alerts the user to downstream dependencies of the files updated - entry: https://hub.docker.com/r/twoffles/downstream:0.4.0 + entry: twoffles/downstream:0.4.0 language: docker_image verbose: true From b8cbf937aebb20edc59aa42f7d3562db9f377de1 Mon Sep 17 00:00:00 2001 From: Alex Reilly Date: Mon, 27 Dec 2021 17:32:36 -0800 Subject: [PATCH 3/3] docker image working --- .pre-commit-config.yaml | 2 +- Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 75caa5e..4b12eea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: . - rev: c4b46be396f99fad7a70e716789194d0841124f2 + rev: 623c6100b9b044f59431bbfef50ebfc540a0619e hooks: - id: downstream - id: downstream-docker diff --git a/Dockerfile b/Dockerfile index 90c1d80..32b25b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ FROM swift:5.5.2 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'] +ENTRYPOINT ["downstream"]