Commit c994ca92 by nabil el mahiri

using npm login

parent 69a5d869
Pipeline #440 failed with stages
in 8 seconds
...@@ -50,14 +50,14 @@ ARG BUILD_TOKEN ...@@ -50,14 +50,14 @@ ARG BUILD_TOKEN
# 2. Populate the private key file. # 2. Populate the private key file.
# 3. Set the required permissions. # 3. Set the required permissions.
# 4. Add github to our list of known hosts for ssh. # 4. Add github to our list of known hosts for ssh.
# RUN mkdir ~/.ssh && \ RUN mkdir ~/.ssh && \
# echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_rsa && \ echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_rsa && \
# chmod 0600 ~/.ssh/id_rsa && \ chmod 0600 ~/.ssh/id_rsa && \
# echo "Host labs.atlasvoyages.com"$'\n\t'"IdentityFile ~/.ssh/id_rsa" >> ~/.ssh/config echo "Host labs.atlasvoyages.com"$'\n\t'"IdentityFile ~/.ssh/id_rsa" >> ~/.ssh/config
# RUN touch ~/.ssh/known_hosts RUN touch ~/.ssh/known_hosts
# RUN ssh-keyscan -t rsa labs.atlasvoyages.com >> ~/.ssh/known_hosts RUN ssh-keyscan -t rsa labs.atlasvoyages.com >> ~/.ssh/known_hosts
# RUN cat ~/.ssh/known_hosts RUN cat ~/.ssh/known_hosts
# RUN ssh -T gitlab.com # RUN ssh -T gitlab.com
...@@ -71,8 +71,6 @@ WORKDIR /atlasvoyages ...@@ -71,8 +71,6 @@ WORKDIR /atlasvoyages
COPY package*.json /atlasvoyages/ COPY package*.json /atlasvoyages/
RUN sed -i 's/git+ssh:\/\/git@labs.atlasvoyages.com:/git+https:\/\/oauth2:'$BUILD_TOKEN'@glabs.atlasvoyages.com\//' ./package.json
RUN npm install --unsafe-perm=true RUN npm install --unsafe-perm=true
COPY ./ /atlasvoyages/ COPY ./ /atlasvoyages/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment