Setup container to run talisman

Mimicing a pre-push hook, where refs and shas need to passed in as
arguments.
This commit is contained in:
Klaus Hartl 2021-09-18 08:22:25 +02:00
commit fbca4983a5
No known key found for this signature in database
GPG key ID: 6BA8AED91AB6EA2A
2 changed files with 13 additions and 0 deletions

8
Dockerfile Normal file
View file

@ -0,0 +1,8 @@
FROM alpine:3.13.6
ADD ["https://github.com/thoughtworks/talisman/releases/download/v1.22.0/talisman_linux_amd64", "/talisman"]
RUN chmod +x /talisman
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

5
entrypoint.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh -l
set -e
sh -c "echo $* | /talisman"