mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-02-14 10:00:11 +00:00
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
SHELL :=/bin/bash
|
|
|
|
IMAGE_REGISTRY?=quay.io/open-cluster-management
|
|
IMAGE_TAG?=latest
|
|
|
|
REGISTRATION_PATH=staging/src/open-cluster-management.io/registration
|
|
WORK_PATH=staging/src/open-cluster-management.io/work
|
|
PLACEMENT_PATH=staging/src/open-cluster-management.io/placement
|
|
REGISTRATION_OPERATOR_PATH=staging/src/open-cluster-management.io/registration-operator
|
|
|
|
build-registration:
|
|
go build -o registration ./cmd/registration
|
|
|
|
image-registration:
|
|
docker build \
|
|
-f build/Dockerfile.registration \
|
|
-t $(IMAGE_REGISTRY)/registration:$(IMAGE_TAG) .
|
|
|
|
build-work:
|
|
go build -o work ./cmd/work
|
|
|
|
image-work:
|
|
docker build \
|
|
-f build/Dockerfile.work \
|
|
-t $(IMAGE_REGISTRY)/work:$(IMAGE_TAG) .
|
|
|
|
build-placement:
|
|
go build -o placement ./cmd/placement
|
|
|
|
image-placement:
|
|
docker build \
|
|
-f build/Dockerfile.placement \
|
|
-t $(IMAGE_REGISTRY)/placement:$(IMAGE_TAG) .
|
|
|
|
build-registration-operator:
|
|
go build -o registration-operator ./cmd/registration-operator
|
|
|
|
image-registration-operator:
|
|
docker build \
|
|
-f build/Dockerfile.registration-operator \
|
|
-t $(IMAGE_REGISTRY)/registration-operator:$(IMAGE_TAG) .
|
|
|
|
images:
|
|
make image-registration
|
|
make image-work
|
|
make image-placement
|
|
make image-registration-operator
|