Skip to content

Commit

Permalink
fixed operatorhub job (#1010)
Browse files Browse the repository at this point in the history
* fixed operatorhub job

* fixed build binaries
  • Loading branch information
AndrewChubatiuk committed Jul 3, 2024
1 parent 38601c2 commit cad1737
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/operatorhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ jobs:
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
push-to-fork: VictoriaMetrics/operatorhub-operators
add-paths: operators/victoriametrics-operator
signoff: true
author: Github Actions <[email protected]>
Expand Down
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ lint-fix: golangci-lint ## Run golangci-lint linter and perform fixes

.PHONY: build
build: docs generate fmt vet ## Build manager binary.
go build -o bin/$(REPO) ./cmd/$(REPO)/...
go build -o bin/$(REPO) $(ROOT)/

.PHONY: run
run: manifests generate fmt vet ## Run a controller from your host.
go run ./cmd/$(REPO)/...
go run $(ROOT)/

# If you wish to build the manager image targeting other platforms you can use the --platform flag.
# (i.e. docker build --platform linux/arm64). However, you must enable docker buildKit for it.
Expand All @@ -144,8 +144,11 @@ docker-build: ## Build docker image with the manager.
-t $(REGISTRY)/$(ORG)/$(REPO):$(TAG) \
-t $(REGISTRY)/$(ORG)/$(REPO):$(BUILDINFO_TAG) .

build-%:
REPO=$* $(MAKE) build
build-operator:
REPO=operator ROOT=./cmd $(MAKE) build

build-config-reloader:
REPO=config-reloader ROOT=./cmd/config-reloader $(MAKE) build

.PHONY: docker-push
docker-push: ## Push docker image with the manager.
Expand Down

0 comments on commit cad1737

Please sign in to comment.