Skip to content

Commit

Permalink
Update Makefile to include commit ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik-K-N committed Apr 4, 2022
1 parent c86301e commit cf63de8
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions hack/ccm/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
#TODO: Update the registry
REGISTRY=quay.io/kabhat
IMG=powervs-cloud-controller-manager
VPC_CONTROLLER_COMMIT?=""
POWERVS_CLOUD_CONTROLLER_COMMIT?=""
TAG?=$(VPC_CONTROLLER_COMMIT)_$(POWERVS_CLOUD_CONTROLLER_COMMIT)

# Make sure VPC_CONTROLLER_COMMIT and POWERVS_CLOUD_CONTROLLER_COMMIT is set
# VPC_CONTROLLER_COMMIT can be fetched from here https://github.com/openshift/cloud-provider-vpc-controller/commits/master
VPC_CONTROLLER_COMMIT?=9b99b4e
# POWERVS_CLOUD_CONTROLLER_COMMIT can be fetched from here https://github.com/openshift/cloud-provider-powervs/commits/main
ifeq ($(VPC_CONTROLLER_COMMIT),"")
$(error VPC_CONTROLLER_COMMIT is not set)
else ifeq ($(POWERVS_CLOUD_CONTROLLER_COMMIT),"")
$(error POWERVS_CLOUD_CONTROLLER_COMMIT is not set)
else
$(info VPC_CONTROLLER_COMMIT is $(VPC_CONTROLLER_COMMIT) POWERVS_CLOUD_CONTROLLER_COMMIT is $(POWERVS_CLOUD_CONTROLLER_COMMIT))
endif
POWERVS_CLOUD_CONTROLLER_COMMIT?=a6bfa07
TAG?=$(VPC_CONTROLLER_COMMIT)_$(POWERVS_CLOUD_CONTROLLER_COMMIT)

build-image-and-push-linux-amd64: init-buildx
{ \
Expand All @@ -40,6 +33,7 @@ init-buildx:
docker run --rm --privileged multiarch/qemu-user-static --reset --credential yes --persistent yes
# Required for "docker buildx build --push".
#TODO: Add respective registry login info
docker login quay.io -u kabhat -p Iisc2018@139138

build-and-push-multi-arch: build-image-and-push-linux-amd64 build-image-and-push-linux-ppc64le
docker manifest create --amend $(REGISTRY)/$(IMG):$(TAG) $(REGISTRY)/$(IMG):$(TAG)_linux_amd64 $(REGISTRY)/$(IMG):$(TAG)_linux_ppc64le
Expand Down

0 comments on commit cf63de8

Please sign in to comment.