Skip to content

Commit f229b7e

Browse files
authored
chore(ci): speed up docker build (#3070)
1 parent 02b8a10 commit f229b7e

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,14 @@ jobs:
3939
build_args: |
4040
APP_DEPLOYMENT=INCIDENT_MANAGER
4141
WITHOUT_AUTH=false
42-
uses: flanksource/action-workflows/.github/workflows/publish-docker-image.yml@main
42+
uses: flanksource/action-workflows/.github/workflows/publish-docker-image.yml@d8fee444922a72525e94481babc8304bcbe32e2d
4343
with:
4444
platforms: linux/amd64,linux/arm64
45+
buildx_driver: cloud
46+
buildx_endpoint: flanksource/node
47+
buildx_install: true
48+
cache_from: ""
49+
cache_to: ""
4550
login_to_ecr: true
4651
image_tags: |
4752
flanksource/${{ matrix.image }}:latest

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ WORKDIR /app
33

44
# Install dependencies based on the preferred package manager
55
COPY package.json package-lock.json* .npmrc ./
6-
RUN npm ci
6+
RUN --mount=type=cache,target=/root/.npm npm ci --prefer-offline
77

88
# Rebuild the source code only when needed
99
FROM node:22.14@sha256:bac8ff0b5302b06924a5e288fb4ceecef9c8bb0bb92515985d2efdc3a2447052 AS builder

0 commit comments

Comments
 (0)