Skip to content
This repository was archived by the owner on Oct 10, 2023. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 09e2c1a

Browse files
committedMar 23, 2023
Build featuregates using build-tooling
Signed-off-by: Avi Sharma <avi.08.sh@gmail.com>
1 parent 8ca88dd commit 09e2c1a

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed
 

‎.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ hack/
44
packages/
55
docs/
66
test/
7+
build/
8+
bin/

‎Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ ARG COMPONENT
1111
ARG GOPROXY_ARG
1212
ENV GOPROXY=${GOPROXY_ARG}
1313
WORKDIR /workspace
14-
COPY "$COMPONENT"/go.* ./
15-
RUN --mount=type=cache,target=/go/pkg/mod \
16-
go mod download
14+
RUN --mount=target=. \
15+
--mount=type=cache,target=/go/pkg/mod \
16+
cd $COMPONENT && go mod download
1717

1818
# Linting
1919
FROM harbor-repo.vmware.com/dockerhub-proxy-cache/golangci/golangci-lint:v1.50 AS lint-base

‎build-tooling.mk

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ IMG_VERSION_OVERRIDE ?= $(IMG_DEFAULT_TAG)
1313
GOPROXY ?= "https://proxy.golang.org,direct"
1414
PLATFORM=local
1515
# check out step 2 in this documentation on how to set the COMPONENTS variable https://github.com/vmware-tanzu/build-tooling-for-integrations/blob/main/docs/build-tooling-getting-started.md
16-
COMPONENTS ?= capabilities/client capabilities/controller.capabilities-controller-manager.capabilities
16+
COMPONENTS ?= capabilities/client \
17+
capabilities/controller.capabilities-controller-manager.capabilities \
18+
featuregates/client \
19+
featuregates/controller.featuregates-controller-manager.featuregates
1720

1821
BUILD_TOOLING_CONTAINER_IMAGE ?= ghcr.io/vmware-tanzu/build-tooling
1922
PACKAGING_CONTAINER_IMAGE ?= ghcr.io/vmware-tanzu/package-tooling

0 commit comments

Comments
 (0)
This repository has been archived.