mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-02 10:35:08 -05:00
ci: add missing replaced mod files to docker build
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
b6a0984ea4
commit
0e7f1c9300
5
.github/actions/versionsapi/Dockerfile
vendored
5
.github/actions/versionsapi/Dockerfile
vendored
@ -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
|
||||
|
||||
|
@ -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 && \
|
||||
|
Loading…
x
Reference in New Issue
Block a user