Skip to content

Commit

Permalink
chore: add generation step (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
MR2011 authored Oct 31, 2024
1 parent a49dede commit 1b4b19c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.23.2 AS builder

WORKDIR /go/src/github.com/cloudoperators/heureka
ADD . .
RUN go generate ./...
RUN CGO_ENABLED=0 go build -o /go/bin/heureka cmd/heureka/main.go

FROM --platform=${BUILDPLATFORM:-linux/amd64} gcr.io/distroless/static-debian12:nonroot

LABEL source_repository="https://github.com/cloudoperators/heureka"
USER nonroot:nonroot
COPY --from=builder /go/bin/heureka /
ENTRYPOINT ["/heureka"]
ENTRYPOINT ["/heureka"]
2 changes: 2 additions & 0 deletions internal/api/graphql/graph/resolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

package resolver

//go:generate go run github.com/99designs/gqlgen generate

import (
"github.com/cloudoperators/heureka/internal/api/graphql/graph"
"github.com/cloudoperators/heureka/internal/app"
Expand Down

0 comments on commit 1b4b19c

Please sign in to comment.