mirror of
https://github.com/storytold/irsa-manager.git
synced 2026-10-09 00:09:43 +00:00
fix dockerfile for build
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
# Build the manager binary
|
||||
FROM golang:1.20 AS builder
|
||||
FROM golang:1.22 AS builder
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
|
||||
@@ -14,7 +14,7 @@ RUN go mod download
|
||||
# Copy the go source
|
||||
COPY cmd/main.go cmd/main.go
|
||||
COPY api/ api/
|
||||
COPY internal/controller/ internal/controller/
|
||||
COPY internal/ internal/
|
||||
|
||||
# Build
|
||||
# the GOARCH has not a default value to allow the binary be built according to the host where the command
|
||||
|
||||
@@ -15,7 +15,7 @@ IMAGE_TAG_BASE ?= kkb0318.github.io/irsa-manager
|
||||
|
||||
|
||||
# Image URL to use all building/pushing image targets
|
||||
IMG ?= controller:latest
|
||||
IMG ?= ghcr.io/kkb0318/irsa-manager:latest
|
||||
|
||||
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
|
||||
ifeq (,$(shell go env GOBIN))
|
||||
@@ -65,7 +65,7 @@ GOLANGCI_LINT_VERSION ?= v1.57.2
|
||||
|
||||
|
||||
.PHONY: all
|
||||
all: fmt vet lint generate manifests kustomize helmify generate-docs
|
||||
all: fmt vet lint generate manifests kustomize helmify generate-docs mock
|
||||
|
||||
|
||||
##@ Development
|
||||
|
||||
Reference in New Issue
Block a user