You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a release github action and implements goreleaser, borrowing heavily from rukpak but stripped down a bit.
Signed-off-by: dtfranz <dfranz@redhat.com>
build: manifests generate fmt vet ## Build manager binary.
98
-
go build -o bin/manager main.go
98
+
CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH}go build -a -o bin/manager main.go
99
99
100
100
.PHONY: run
101
-
run: docker-build kind-cluster kind-load cert-mgr rukpak install deploy wait ## Build the operator-controller then deploy it into a new kind cluster.
101
+
run: build docker-build kind-cluster kind-load cert-mgr rukpak install deploy wait ## Build the operator-controller then deploy it into a new kind cluster.
102
102
103
103
.PHONY: wait
104
104
wait:
@@ -109,7 +109,7 @@ wait:
109
109
# More info: https://docs.docker.com/develop/develop-images/build_enhancements/
110
110
.PHONY: docker-build
111
111
docker-build: generate ## Build docker image with the operator-controller.
112
-
docker build -t ${IMG}.
112
+
docker build -t ${IMG}-f Dockerfile ./bin/
113
113
114
114
.PHONY: docker-push
115
115
docker-push: ## Push docker image with the manager.
@@ -132,6 +132,24 @@ docker-buildx: test ## Build and push docker image for the manager for cross-pla
0 commit comments