Files
kata-containers/release/Makefile
Ganesh Maharaj Mahalingam ec87592415 bump-repos: Make associated files adapt to newer bump script
update-repository-version script no longer expects the repository name,
but just the version and the target branch. Modify associated Makefile
and jenkins pipeline files to adapt to that change.

Fixes: #443
Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
2019-05-08 14:57:45 -07:00

27 lines
615 B
Makefile

#
# Copyright (c) 2018 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
#
MK_DIR :=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
.PHONY: bump-kata-version
NEW_VERSION :=
TARGET_BRANCH ?= "master"
# Run update-repository-version.sh
# $1 : repository to bump
define BUMP_REPO
@echo "Create PR for $1 version $(NEW_VERSION)"
@$(MK_DIR)/update-repository-version.sh -p $(NEW_VERSION) $(TARGET_BRANCH)
endef
bump-kata-version: $(REPOS)
ifeq ($(and $(NEW_VERSION),$(TARGET_BRANCH)),)
$(error Either NEW_VERSION or TARGET_BRANCH variable is empty, provide both)
else
$(call BUMP_REPO)
endif