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

chore: Replace image names with variable names in Makefile #15175

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

chaudum
Copy link
Contributor

@chaudum chaudum commented Nov 28, 2024

What this PR does / why we need it:

Use existing variables for image names in the make targets,
e.g. replace $(IMAGE_PREFIX)/loki:$(IMAGE_TAG) with $(LOKI_IMAGE)

@chaudum chaudum requested a review from a team as a code owner November 28, 2024 09:28
@@ -1,5 +1,10 @@
# Loki Project Makefile
# ______ ____ __ __ _
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

ifeq ($(CI), true)
ifeq ($(CI),true)
# ensure buildx is set up
_ := $(shell ./tools/ensure-buildx-builder.sh)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: ci stages that don't run any of the build image targets would still call this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ashwanthgoli Do you know why the script only ran as dependency of the build-image target? Is it problematic that it runs every time in CI?

Copy link
Contributor

@ashwanthgoli ashwanthgoli left a comment

Choose a reason for hiding this comment

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

LGTM

@chaudum chaudum merged commit b62aa44 into main Nov 28, 2024
60 checks passed
@chaudum chaudum deleted the chaudum/makefile-cleanup-pt2 branch November 28, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants