From f309be1e76a0838adc528ff6976698afe7c62eb0 Mon Sep 17 00:00:00 2001 From: chan Date: Tue, 24 Feb 2026 16:41:26 +0900 Subject: [PATCH] =?UTF-8?q?chore:=EB=8F=84=EC=BB=A4=20=EB=B9=8C=EB=93=9C?= =?UTF-8?q?=20=ED=99=98=EA=B2=BD=20/=20=20Dockerfile=EC=97=90=20secret=20?= =?UTF-8?q?=EC=A3=BC=EC=9E=85=20=EA=B2=BD=EB=A1=9C=EB=A5=BC=20=EB=B0=98?= =?UTF-8?q?=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 4 +++- Docker-pinhouse-file | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 652cac6..69dd578 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,5 +34,7 @@ jobs: build-args: | NEXT_PUBLIC_API_URL=${{ secrets.NEXT_PUBLIC_API_URL }} NEXT_PUBLIC_OAUTH2=${{ secrets.NEXT_PUBLIC_OAUTH2 }} + secrets: | + npmrc=${{ secrets.NPM_TOKEN }} cache-from: type=gha - cache-to: type=gha,mode=max \ No newline at end of file + cache-to: type=gha,mode=max diff --git a/Docker-pinhouse-file b/Docker-pinhouse-file index 8d2a73d..14d209f 100644 --- a/Docker-pinhouse-file +++ b/Docker-pinhouse-file @@ -1,3 +1,5 @@ +# syntax=docker/dockerfile:1.7 + # ========================= # 1️⃣ Base # ========================= @@ -9,7 +11,7 @@ WORKDIR /pinhouse-fe # ========================= FROM base AS deps COPY package.json package-lock.json ./ -RUN npm ci +RUN --mount=type=secret,id=npmrc,target=/root/.npmrc npm ci # ========================= # 3️⃣ Build