Commit 0ebf8c26 by nabil el mahiri

using npm login

parent 28627b6f
Pipeline #402 failed with stages
in 2 minutes 19 seconds
......@@ -63,12 +63,11 @@ ARG SSH_PRIVATE_KEY
# 3. Set the required permissions.
# 4. Add github to our list of known hosts for ssh.
RUN mkdir ~/.ssh && \
echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_rsa && \
chmod 0600 ~/.ssh/id_rsa && \
echo "Host labs.atlasvoyages.com"$'\n\t'"IdentityFile ~/.ssh/id_rsa" >> ~/.ssh/config && \
ssh-keyscan -t rsa labs.atlasvoyages.com >> ~/.ssh/known_hosts && \
cat ~/.ssh/known_hosts && \
cat /root/.ssh/id_rsa
echo "$SSH_PRIVATE_KEY" >> /root/.ssh/id_rsa && \
chmod 0600 /root/.ssh/id_rsa && \
echo "Host labs.atlasvoyages.com"$'\n\t'"IdentityFile /root/.ssh/id_rsa" >> /root/.ssh/config && \
ssh-keyscan -t rsa labs.atlasvoyages.com >> /root/.ssh/known_hosts && \
cat /root/.ssh/known_hosts
RUN ssh -T git@labs.atlasvoyages.com
......
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