fix: auth cicd on node 14

This commit is contained in:
saeid_01
2023-10-25 22:11:28 +03:30
parent 5a946549a4
commit 0c68daffd7
3 changed files with 6 additions and 4 deletions
View File
+1
View File
@@ -1,4 +1,5 @@
.DS_Store .DS_Store
.env
node_modules node_modules
/dist /dist
+5 -4
View File
@@ -1,4 +1,3 @@
# Build Stage
FROM docker.willaspace.com/repository/docker-hosted/node:14 as build-stage FROM docker.willaspace.com/repository/docker-hosted/node:14 as build-stage
ARG REGISTRY_TOKEN ARG REGISTRY_TOKEN
@@ -9,11 +8,13 @@ WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm config set registry=$REGISTRY_PROXY RUN npm config set _auth=$REGISTRY_TOKEN
RUN npm config set //repo.willaspace.com/repository/npm-proxy/:_auth=$REGISTRY_TOKEN RUN npm config set strict-ssl=false
RUN npm install RUN npm cache clean --force
RUN npm i
COPY ./ . COPY ./ .