Skip to content

Commit

Permalink
Merge pull request #105 from andrewsykim/make-gcr-repo
Browse files Browse the repository at this point in the history
Add make targets for pushing to staging GCR repo
  • Loading branch information
k8s-ci-robot authored May 30, 2020
2 parents 8809ac6 + b52bc6c commit dff969f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ VERSION ?= $(shell git describe --exact-match 2> /dev/null || \
git describe --match=$(git rev-parse --short=8 HEAD) --always --dirty --abbrev=8)
LDFLAGS := "-w -s -X 'main.version=${VERSION}'"

IMAGE ?= gcr.io/k8s-staging-provider-aws/cloud-controller-manager:$(VERSION)

export GO111MODULE=on

aws-cloud-controller-manager: $(SOURCES)
Expand All @@ -26,6 +28,14 @@ aws-cloud-controller-manager: $(SOURCES)
-o aws-cloud-controller-manager \
cmd/aws-cloud-controller-manager/main.go

.PHONY: build
build:
docker build -t $(IMAGE) .

.PHONY: push
push: build
docker push $(IMAGE)

.PHONY: check
check: verify-fmt verify-lint vet

Expand Down

0 comments on commit dff969f

Please sign in to comment.