File tree Expand file tree Collapse file tree 5 files changed +14
-8
lines changed
Expand file tree Collapse file tree 5 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 4040 context : tool/${{ matrix.image }}
4141 tags : ${{ env.REGISTRY }}/pipe-cd/${{ matrix.image }}:${{ env.PIPECD_VERSION }}
4242 platforms : linux/amd64,linux/arm64
43+ # parameter to use inline cache. ref; https://docs.docker.com/build/ci/github-actions/cache/#inline-cache
44+ cache-from : type=registry,ref=${{ env.REGISTRY }}/pipe-cd/${{ matrix.image }}:latest
45+ cache-to : type=inline
Original file line number Diff line number Diff line change 9393 file : ${{ matrix.dockerfile }}
9494 platforms : linux/amd64,linux/arm64
9595 tags : ${{ matrix.container_registry }}/${{ matrix.image }}:${{ env.PIPECD_VERSION }}
96+ # parameter to use inline cache. ref; https://docs.docker.com/build/ci/github-actions/cache/#inline-cache
97+ cache-from : type=registry,ref=${{ matrix.container_registry }}/${{ matrix.image }}:latest
98+ cache-to : type=inline
9699
97100 # Building and pushing Helm charts.
98101 - name : Install helm
Original file line number Diff line number Diff line change 5555 context : docs
5656 file : docs/Dockerfile
5757 tags : ${{ env.GHCR }}/pipe-cd/site:${{ env.PIPECD_VERSION }}
58+ # parameter to use inline cache. ref; https://docs.docker.com/build/ci/github-actions/cache/#inline-cache
59+ cache-from : type=registry,ref=${{ env.GHCR }}/pipe-cd/site:latest
60+ cache-to : type=inline
5861
5962 # Building and pushing Helm charts.
6063 - name : Install helm
Original file line number Diff line number Diff line change 5151 tags : ${{ env.GHCR }}/pipe-cd/${{ matrix.image }}:${{ env.PIPECD_VERSION }}
5252 platforms : linux/amd64,linux/arm64
5353 push : true
54+ # parameter to use inline cache. ref; https://docs.docker.com/build/ci/github-actions/cache/#inline-cache
55+ cache-from : type=registry,ref=${{ env.GHCR }}/pipe-cd/${{ matrix.image }}:latest
56+ cache-to : type=inline
Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1
22# web builder
3- # because of this issue, we choose node 18
4- # https://github.com/pipe-cd/pipecd/issues/5422
5- # https://github.com/nodejs/docker-node/issues/1335#issuecomment-2024344411
6- FROM node:18.20.5-alpine3.21 AS web
3+ # because this stage builds only web assets, we can use any platform
4+ FROM --platform=$BUILDPLATFORM node:18.20.5-alpine3.21 AS web
75
86WORKDIR /app
97
108COPY . .
119
1210RUN apk add --no-cache make git
1311
14- # because of this issue, we set network-timeout to 300000
15- # https://github.com/pipe-cd/pipecd/issues/5422
16- RUN yarn config set network-timeout 300000
17-
1812RUN make update/web-deps
1913RUN make build/web
2014
You can’t perform that action at this time.
0 commit comments