-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactored makefile #9
Conversation
@@ -1,30 +1,119 @@ | |||
APP_NAME = event-publisher-proxy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This make file is inspired by the makefile of eventing-manager!!!
# Image URL to use all building/pushing image targets | ||
IMG_REGISTRY_PORT ?= 8888 | ||
IMG_REGISTRY ?= op-skr-registry.localhost:$(IMG_REGISTRY_PORT)/unsigned/eventing-images | ||
IMG ?= $(IMG_REGISTRY)/$(APP_NAME):$(APP_VERSION) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is APP_VERSION
missing or going to be added later?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will come as ENV from build pipeline (i.e. prow), I did not add a default value because we do not have .version
file in EPP.
If we had .version
file we could have done something like this, but since we are also trying to get rid of .version
file in other repositories, so I did not add this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For local dev, we will use the command like make docker-build IMG=mfaizan21/eventing-publisher-proxy:test1
so we do not need APP_VERSION
for local development.
run: go-gen fmt vet ## Run publisher from your host. | ||
go run ./cmd/event-publisher-proxy/main.go | ||
|
||
.PHONY: release-image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Description
Changes proposed in this pull request:
Related issue(s)