Commit 69a5d869 by nabil el mahiri

using npm login

parent 8c5701f1
Pipeline #439 failed with stages
in 5 seconds
......@@ -13,7 +13,7 @@ before_script:
- echo $CI_PROJECT_DIR
- echo ${PWD}
stages:
- build
- deploy
......@@ -26,13 +26,13 @@ build:
only:
- master
script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# Run ssh-agent (inside the build environment)
- eval $(ssh-agent -s)
# Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
- ssh-add <(echo "$SSH_PRIVATE_KEY" | base64 -d)
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
# - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# # Run ssh-agent (inside the build environment)
# - eval $(ssh-agent -s)
# # Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
# - ssh-add <(echo "$SSH_PRIVATE_KEY" | base64 -d)
# - mkdir -p ~/.ssh
# - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- chmod +x sh/run.sh
- docker build --build-arg SSH_PRIVATE_KEY="$SSH_PRIVATE_KEY" --build-arg CI_JOB_TOKEN="${CI_JOB_TOKEN}" -f docker/Dockerfile -t atlasvoyages-docker:prod .
- sh sh/clean.sh
......
......@@ -62,7 +62,7 @@ ARG BUILD_TOKEN
# RUN ssh -T gitlab.com
# RUN ssh -T git@gitlab.com
RUN ssh -T git@labs.atlasvoyages.com
# RUN ssh -T git@labs.atlasvoyages.com
# RUN sed -i 's/git+ssh:\/\/git@labs.atlasvoyages.com:/git+https:\/\/oauth2:'$BUILD_TOKEN'@glabs.atlasvoyages.com\//' ./package.json
# RUN git clone https://nabilelmahiri:arigatou%4065@labs.atlasvoyages.com/pine/theme-atlasvoyages.git -b 0.3-beta-v1
......@@ -71,6 +71,8 @@ WORKDIR /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
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