Commit bfc3065a by nabil el mahiri

using npm login

parent 69148b4d
Pipeline #350 failed with stages
in 2 minutes 20 seconds
...@@ -7,7 +7,7 @@ variables: ...@@ -7,7 +7,7 @@ variables:
CI_DEBUG_TRACE: "true" CI_DEBUG_TRACE: "true"
before_script: before_script:
# - git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@labs.atlasvoyages.com/".insteadOf "git@labs.atlasvoyages.com:" - git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@labs.atlasvoyages.com/".insteadOf "git@labs.atlasvoyages.com:"
- docker info - docker info
- echo $CI_BUILD_REF - echo $CI_BUILD_REF
- echo $CI_PROJECT_DIR - echo $CI_PROJECT_DIR
......
...@@ -53,9 +53,6 @@ COPY package*.json /atlasvoyages/ ...@@ -53,9 +53,6 @@ COPY package*.json /atlasvoyages/
# Take an SSH key as a build argument. # Take an SSH key as a build argument.
ARG SSH_PRIVATE_KEY ARG SSH_PRIVATE_KEY
# Install dependencies required to git clone.
RUN apt-get -y install openssh-server
# 1. Create the SSH directory. # 1. Create the SSH directory.
# 2. Populate the private key file. # 2. Populate the private key file.
# 3. Set the required permissions. # 3. Set the required permissions.
...@@ -63,7 +60,8 @@ RUN apt-get -y install openssh-server ...@@ -63,7 +60,8 @@ RUN apt-get -y install openssh-server
RUN mkdir -p /root/.ssh/ && \ RUN mkdir -p /root/.ssh/ && \
echo "$SSH_PRIVATE_KEY" > /root/.ssh/id_rsa && \ echo "$SSH_PRIVATE_KEY" > /root/.ssh/id_rsa && \
chmod -R 600 /root/.ssh/ && \ chmod -R 600 /root/.ssh/ && \
ssh-keyscan -t rsa labs.atlasvoyages.com >> ~/.ssh/known_hosts ssh-keyscan labs.atlasvoyages.com >> /root/.ssh/known_hosts
RUN git clone git@labs.atlasvoyages.com:pine/theme-atlasvoyages.git -b 0.3-beta-v1 RUN git clone git@labs.atlasvoyages.com:pine/theme-atlasvoyages.git -b 0.3-beta-v1
......
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