File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -156,6 +156,12 @@ run/pipecd: BUILD_LDFLAGS_PREFIX := -X github.com/pipe-cd/pipecd/pkg/version
156156run/pipecd : BUILD_OPTS ?= -ldflags "$(BUILD_LDFLAGS_PREFIX ) .version=$(BUILD_VERSION ) $(BUILD_LDFLAGS_PREFIX ) .gitCommit=$(BUILD_COMMIT ) $(BUILD_LDFLAGS_PREFIX ) .buildDate=$(BUILD_DATE ) -w"
157157run/pipecd : CONTROL_PLANE_VALUES ?= ./quickstart/control-plane-values.yaml
158158run/pipecd :
159+ @echo " Building go binary of Control Plane..."
160+ GOOS=linux GOARCH=amd64 CGO_ENABLED=0 $(BUILD_ENV ) go build $(BUILD_OPTS ) -o ./.artifacts/pipecd ./cmd/pipecd
161+
162+ @echo "Building web static files..."
163+ yarn --cwd web build
164+
159165 @echo "Building docker image and pushing it to local registry..."
160166 docker build -f cmd/pipecd/Dockerfile -t localhost:5001/pipecd:$(BUILD_VERSION) .
161167 docker push localhost:5001/pipecd:$(BUILD_VERSION)
Original file line number Diff line number Diff line change @@ -5,14 +5,11 @@ FROM --platform=$BUILDPLATFORM node:20.19.0-alpine3.21 AS web
55
66WORKDIR /app
77
8- RUN apk add --no-cache make git
8+ COPY . .
99
10- COPY web/package.json web/yarn.lock ./web/
11- RUN yarn --cwd web install --prefer-offline
10+ RUN apk add --no-cache make git
1211
13- COPY .git ./.git
14- COPY web ./web
15- COPY Makefile .
12+ RUN make update/web-deps
1613RUN make build/web
1714
1815# pipecd builder
@@ -26,9 +23,7 @@ WORKDIR /app
2623COPY go.* ./
2724RUN go mod download
2825
29- COPY pkg/ ./pkg/
30- COPY cmd/ ./cmd/
31- COPY Makefile .
26+ COPY . ./
3227
3328RUN make build/go MOD=pipecd BUILD_OS=${TARGETOS} BUILD_ARCH=${TARGETARCH}
3429
You can’t perform that action at this time.
0 commit comments