Skip to content
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

Merged
merged 1 commit into from
Dec 13, 2023
Merged

Refactored makefile #9

merged 1 commit into from
Dec 13, 2023

Conversation

mfaizanse
Copy link
Member

Description

Changes proposed in this pull request:

  • Refactored makefile.
  • Updated gitignore.

Related issue(s)

@mfaizanse mfaizanse requested a review from a team as a code owner December 13, 2023 12:12
@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 13, 2023
@@ -1,30 +1,119 @@
APP_NAME = event-publisher-proxy
Copy link
Member Author

@mfaizanse mfaizanse Dec 13, 2023

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)
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Member Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@kyma-bot kyma-bot added the lgtm Looks good to me! label Dec 13, 2023
@kyma-bot kyma-bot merged commit cee372e into kyma-project:main Dec 13, 2023
3 checks passed
@mfaizanse mfaizanse deleted the makefile1 branch December 13, 2023 12:55
mfaizanse added a commit that referenced this pull request Dec 14, 2023
@grischperl grischperl added this to the 1.0.0 milestone Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

move EPP out of kyma into the eventing-manager and setup pipelines / cleanup old pipelines
3 participants