diff --git a/Dockerfile b/Dockerfile index 10814f5..bdc6e01 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ FROM golang:1.13 AS builder -RUN apt-get update && apt-get -y install upx && go get -u github.com/sethvargo/go-githubactions/... - -ENV GO111MODULE=on CGO_ENABLED=0 +RUN apt-get update && apt-get -y install upx +#RUN mkdir -p $GOPATH/src/github.com/DTherHtun/google-chat-action +#ADD . $GOPATH/src/github.com/DTherHtun/google-chat-action +RUN go get -u github.com/sethvargo/go-githubactions/... +ENV CGO_ENABLED=0 COPY . . RUN go build \ @@ -13,7 +15,7 @@ RUN go build \ -installsuffix cgo \ -tags netgo \ -o /bin/google-chat-action \ - . + . RUN strip /bin/google-chat-action diff --git a/action.yml b/action.yml index 1be2ba1..d0ef344 100644 --- a/action.yml +++ b/action.yml @@ -15,3 +15,6 @@ inputs: runs: using: 'docker' image: 'Dockerfile' + args: + - ${{ inputs.msg }} + - ${{ inputs.webhook }}