diff --git a/.github/actions/versionsapi/Dockerfile b/.github/actions/versionsapi/Dockerfile index 1866a1399..54bbfc04f 100644 --- a/.github/actions/versionsapi/Dockerfile +++ b/.github/actions/versionsapi/Dockerfile @@ -2,9 +2,10 @@ FROM golang:1.20.1@sha256:d19ee8512191c8b8e967246d4a7d0de4f4133a30bd9ce982e9b70a # Download project root dependencies WORKDIR /workspace -# Copy the Go Modules manifests COPY go.mod go.mod COPY go.sum go.sum +COPY operators/constellation-node-operator/api/go.mod ./operators/constellation-node-operator/api/go.mod +COPY operators/constellation-node-operator/api/go.sum ./operators/constellation-node-operator/api/go.sum # cache deps before building and copying source so that we don't need to re-download as much # and so that source changes don't invalidate our downloaded layer RUN go mod download @@ -13,7 +14,7 @@ COPY . . # Build WORKDIR /workspace/internal/versionsapi/cli -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o versionsapi . +RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o versionsapi . FROM scratch as release diff --git a/hack/qemu-metadata-api/Dockerfile b/hack/qemu-metadata-api/Dockerfile index b49674569..80ecd678f 100644 --- a/hack/qemu-metadata-api/Dockerfile +++ b/hack/qemu-metadata-api/Dockerfile @@ -25,7 +25,7 @@ RUN go mod download all COPY . /qemu-metadata-api WORKDIR /qemu-metadata-api/hack/qemu-metadata-api -RUN go build -o api-server ./main.go +RUN go build -o api-server . FROM fedora:37@sha256:23c63666eefb64cd2364e6d8ad327f06abf9eb1f34b621e9fd6c1602e142244b as release RUN dnf -y install libvirt-devel && \