File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 4343
4444 - name : Run go vet
4545 run : make vet
46+
47+ docker-build :
48+ runs-on : ubuntu-latest
49+ permissions :
50+ packages : write
51+ contents : read
52+ steps :
53+ - name : Checkout
54+ uses : actions/checkout@v4
55+
56+ - name : Setup QEMU
57+ uses : docker/setup-qemu-action@v3
58+
59+ - name : Setup Docker Buildx
60+ id : buildx
61+ uses : docker/setup-buildx-action@v3
62+
63+ - name : Build image
64+ uses : docker/build-push-action@v3
65+ with :
66+ context : .
67+ platforms : linux/amd64,linux/arm64
68+ push : false
Original file line number Diff line number Diff line change 1- FROM golang:1.23.2-alpine3.20 as builder
1+ FROM golang:1.23.2-alpine3.20 AS builder
22
33WORKDIR /src
44
@@ -7,11 +7,13 @@ RUN apk --update --no-cache add git make
77ENV CGO_ENABLED=0
88
99COPY go.mod go.mod
10+ COPY go.sum go.sum
1011COPY Makefile Makefile
1112
1213RUN go mod download
1314
1415COPY *.go ./
16+ COPY internal internal/
1517
1618RUN make build
1719
You can’t perform that action at this time.
0 commit comments