diff --git a/Dockerfile b/Dockerfile index 3f82fa5..c13d23b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/scripts/echo.sh b/scripts/echo.sh new file mode 100755 index 0000000..6405367 --- /dev/null +++ b/scripts/echo.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +echo "Echo from script..." + +echo "hostname: `hostname`" + +echo "user-agent: $user_agent" +