Skip to content

Commit ddc7a84

Browse files
authored
fix: copy missing files into image (#20)
This also adds a docker-build job to the `ci` workflow to ensure we discover image build errors before attempting to create a release.
1 parent add52b7 commit ddc7a84

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,26 @@ jobs:
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

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.23.2-alpine3.20 as builder
1+
FROM golang:1.23.2-alpine3.20 AS builder
22

33
WORKDIR /src
44

@@ -7,11 +7,13 @@ RUN apk --update --no-cache add git make
77
ENV CGO_ENABLED=0
88

99
COPY go.mod go.mod
10+
COPY go.sum go.sum
1011
COPY Makefile Makefile
1112

1213
RUN go mod download
1314

1415
COPY *.go ./
16+
COPY internal internal/
1517

1618
RUN make build
1719

0 commit comments

Comments
 (0)