forked from stolostron/search-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
20 lines (16 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright (c) 2021 Red Hat, Inc.
# Copyright Contributors to the Open Cluster Management project
GITHUB_USER := $(shell echo $(GITHUB_USER) | sed 's/@/%40/g')
GITHUB_TOKEN ?=
-include $(shell [ -f ".build-harness-bootstrap" ] || curl --fail -sSL -o .build-harness-bootstrap -H "Authorization: token $(GITHUB_TOKEN)" -H "Accept: application/vnd.github.v3.raw" "https://raw.github.com/open-cluster-management/build-harness-extensions/master/templates/Makefile.build-harness-bootstrap"; echo .build-harness-bootstrap)
export PROJECT_DIR = $(shell 'pwd')
export BUILD_DIR = $(PROJECT_DIR)/build
export COMPONENT_SCRIPTS_PATH = $(BUILD_DIR)
export GIT_REMOTE_URL = $(shell git config --get remote.origin.url)
export DOCKER_IMAGE ?= $(COMPONENT_NAME)
export IMAGE_DESCRIPTION ?= Web_console_for_Search
export DOCKER_BUILD_TAG ?= latest
export DOCKER_BUILD_OPTS = --build-arg VCS_REF=$(VCS_REF) \
--build-arg VCS_URL=$(GIT_REMOTE_URL) \
--build-arg IMAGE_NAME=$(DOCKER_IMAGE) \
--build-arg IMAGE_DESCRIPTION=$(IMAGE_DESCRIPTION)