chore: use image instead of build
All checks were successful
Sample Testing / my_job (push) Successful in 59s

This commit is contained in:
Marcel S. Henselin 2026-04-17 14:57:40 +02:00
parent b375061648
commit 82f727210d
3 changed files with 13 additions and 7 deletions

View file

@ -1,14 +1,15 @@
FROM golang:1.13 AS builder
FROM golang:1.26 AS builder
RUN apt-get update && apt-get -y install upx
WORKDIR /app
#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/...
# RUN go get -u github.com/sethvargo/go-githubactions/...
ENV CGO_ENABLED=0
COPY . .
RUN go build \
RUN go mod tidy && go build \
-a \
-trimpath \
-ldflags "-s -w -extldflags '-static'" \