Skip to content

Commit

Permalink
add secret mount
Browse files Browse the repository at this point in the history
  • Loading branch information
alagishev committed Jan 19, 2025
1 parent d974385 commit 38a5ffa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
call-docker-ci-workflow:
uses: netcracker/qubership-apihub-ci/.github/workflows/docker-ci.yml@v2
uses: netcracker/qubership-apihub-ci/.github/workflows/docker-ci.yml@npmrc
with:
name: qubership-apihub-build-task-consumer
file: Dockerfile
Expand Down
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ WORKDIR /workspace
COPY src src
COPY package*.json ./
COPY tsconfig*.json ./
RUN --mount=type=secret,id=NPMRC,target=./.npmrc npm ci && npm run build --if-present

# for local machine build
#COPY .npmrc .npmrc
#RUN npm ci && npm run build --if-present

# for GitHub actions build
RUN --mount=type=secret,id=NPMRC,target=.npmrc npm ci && npm run build --if-present

FROM docker.io/node:20

Expand Down

0 comments on commit 38a5ffa

Please sign in to comment.