mirror of
https://github.com/TECHNOFAB11/docsonnet.git
synced 2026-02-02 07:35:11 +01:00
add github action to push image (#21)
Co-authored-by: sh0rez <me@shorez.de>
This commit is contained in:
parent
5776ff829f
commit
4f0571d7e1
3 changed files with 62 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
FROM golang:1.16.4 as base
|
||||
FROM --platform=$BUILDPLATFORM golang:1.16.4 as base
|
||||
|
||||
ENV GO111MODULE=on
|
||||
WORKDIR /app
|
||||
|
|
@ -11,7 +11,9 @@ RUN go mod download
|
|||
COPY . .
|
||||
|
||||
FROM base AS builder
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags='-s -w -extldflags "-static"' .
|
||||
|
||||
ENV GOARCH=$TARGETARCH
|
||||
RUN CGO_ENABLED=0 go build -ldflags='-s -w -extldflags "-static"' .
|
||||
|
||||
FROM alpine:3.12
|
||||
COPY --from=builder /app/docsonnet /usr/local/bin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue