mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-02-14 18:09:57 +00:00
Use image builder to build image (#154)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
This commit is contained in:
@@ -7,6 +7,7 @@ ENV GO_PACKAGE open-cluster-management.io/ocm
|
||||
|
||||
RUN GOOS=${OS} \
|
||||
GOARCH=${ARCH} \
|
||||
GO_BUILD_PACKAGES=./cmd/placement \
|
||||
make build --warn-undefined-variables
|
||||
|
||||
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
|
||||
|
||||
@@ -7,6 +7,7 @@ ENV GO_PACKAGE open-cluster-management.io/ocm
|
||||
|
||||
RUN GOOS=${OS} \
|
||||
GOARCH=${ARCH} \
|
||||
GO_BUILD_PACKAGES=./cmd/registration \
|
||||
make build --warn-undefined-variables
|
||||
|
||||
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
|
||||
|
||||
@@ -7,6 +7,7 @@ ENV GO_PACKAGE open-cluster-management.io/ocm
|
||||
|
||||
RUN GOOS=${OS} \
|
||||
GOARCH=${ARCH} \
|
||||
GO_BUILD_PACKAGES=./cmd/registration-operator \
|
||||
make build --warn-undefined-variables
|
||||
|
||||
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
|
||||
|
||||
@@ -7,6 +7,7 @@ ENV GO_PACKAGE open-cluster-management.io/ocm
|
||||
|
||||
RUN GOOS=${OS} \
|
||||
GOARCH=${ARCH} \
|
||||
GO_BUILD_PACKAGES=./cmd/work \
|
||||
make build --warn-undefined-variables
|
||||
|
||||
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
|
||||
|
||||
Reference in New Issue
Block a user