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 FROM golang:1.13 AS builder
RUN apt-get update && apt-get -y install upx && go get -u github.com/sethvargo/go-githubactions/... RUN apt-get update && apt-get -y install upx
ENV GO111MODULE=on CGO_ENABLED=0
#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 . . COPY . .
RUN go build \ RUN go build \

View file

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