mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-02-14 10:00:11 +00:00
Setup images build and github actions(without release).
Signed-off-by: xuezhaojun <zxue@redhat.com>
This commit is contained in:
47
Makefile
Normal file
47
Makefile
Normal file
@@ -0,0 +1,47 @@
|
||||
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
|
||||
Reference in New Issue
Block a user