fix docker

This commit is contained in:
D Ther 2020-10-14 17:10:23 +06:30
parent b6a91bc36d
commit f995fc147f
No known key found for this signature in database
GPG key ID: 4729D840D81DC783
2 changed files with 9 additions and 4 deletions

View file

@ -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

View file

@ -15,3 +15,6 @@ inputs:
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.msg }}
- ${{ inputs.webhook }}