mirror of
https://github.com/ncarlier/webhookd.git
synced 2025-04-08 19:40:56 +00:00
chore(docker): add default scripts
This commit is contained in:
parent
faf5da7a33
commit
a912f48b5f
|
@ -37,8 +37,9 @@ RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
|
|||
# Install deps
|
||||
RUN apk add --no-cache git openssh-client jq
|
||||
|
||||
# Install binary
|
||||
# Install binary and default scripts
|
||||
COPY --from=builder /go/src/$REPOSITORY/$ARTIFACT/release/$ARTIFACT-linux-amd64 /usr/local/bin/$ARTIFACT
|
||||
COPY --from=builder /go/src/$REPOSITORY/$ARTIFACT/scripts /opt/scripts
|
||||
|
||||
# Define command
|
||||
CMD webhookd
|
||||
|
|
8
scripts/echo.sh
Executable file
8
scripts/echo.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Echo from script..."
|
||||
|
||||
echo "hostname: `hostname`"
|
||||
|
||||
echo "user-agent: $user_agent"
|
||||
|
Loading…
Reference in New Issue
Block a user