Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit 20e313a

Browse files
committed
trying adding entrypoint
1 parent 7a3297a commit 20e313a

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

actions/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ RUN go get github.com/GoogleContainerTools/container-diff && \
3838
mkdir -p /code && \
3939
apt-get autoremove
4040

41+
ADD entrypoint.sh /entrypoint.sh
42+
4143
RUN mkdir -p /root/.docker && \
42-
echo {} > /root/.docker/config.json
44+
echo {} > /root/.docker/config.json && \
45+
chmod u+x /entrypoint.sh
4346

44-
ENTRYPOINT ["container-diff"]
47+
ENTRYPOINT ["/entrypoint.sh"]

actions/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ action "push" {
6464
}
6565
6666
action "Run container-diff" {
67-
uses = "GoogleContainerTools/container-diff/actions@master"
6867
needs = ["build", "login", "push"]
68+
uses = "GoogleContainerTools/container-diff/actions@master"
6969
args = ["analyze", "vanessa/salad", "--type=pip", "type=apt", "--type=history", "--output", "/github/workspace/data.json", "--type=file", "--json", "--quiet", "--verbosity=panic" ]
7070
}
7171

actions/entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh -l
2+
3+
sh -c "container-diff $*"

0 commit comments

Comments
 (0)