Skip to content

Commit

Permalink
Merge pull request #5181 from novuhq/hot-fix-Issue-while-reading-npmrc
Browse files Browse the repository at this point in the history
fix(ci): Mount token to a build svc command
  • Loading branch information
AliaksandrRyzhou committed Feb 13, 2024
2 parents 1d417cd + 1bf15f1 commit 11fa792
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN --mount=type=cache,id=pnpm-store-api,target=/root/.pnpm-store\
--frozen-lockfile\
--unsafe-perm

RUN NODE_ENV=production NX_DAEMON=false pnpm build:api
RUN --mount=type=secret,id=BULL_MQ_PRO_NPM_TOKEN,uid=1000 export BULL_MQ_PRO_NPM_TOKEN=$(cat /run/secrets/BULL_MQ_PRO_NPM_TOKEN) && NODE_ENV=production NX_DAEMON=false pnpm build:api

WORKDIR /usr/src/app/apps/api

Expand Down
2 changes: 1 addition & 1 deletion apps/inbound-mail/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN --mount=type=cache,id=pnpm-store-inbound-mail,target=/root/.pnpm-store\
--unsafe-perm\
--reporter=silent

RUN NODE_ENV=production pnpm build:inbound-mail
RUN --mount=type=secret,id=BULL_MQ_PRO_NPM_TOKEN,uid=1000 export BULL_MQ_PRO_NPM_TOKEN=$(cat /run/secrets/BULL_MQ_PRO_NPM_TOKEN) && NODE_ENV=production pnpm build:inbound-mail

WORKDIR /usr/src/app/apps/inbound-mail

Expand Down
2 changes: 1 addition & 1 deletion apps/worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN --mount=type=cache,id=pnpm-store-worker,target=/root/.pnpm-store\
--unsafe-perm\
--reporter=silent

RUN NODE_ENV=production NX_DAEMON=false pnpm build:worker
RUN --mount=type=secret,id=BULL_MQ_PRO_NPM_TOKEN,uid=1000 export BULL_MQ_PRO_NPM_TOKEN=$(cat /run/secrets/BULL_MQ_PRO_NPM_TOKEN) && NODE_ENV=production NX_DAEMON=false pnpm build:worker

WORKDIR /usr/src/app/apps/worker

Expand Down

0 comments on commit 11fa792

Please sign in to comment.