Commit 1a75b0c1 by nabil el mahiri

using npm login

parent 2fb7145c
Pipeline #458 canceled with stages
in 0 seconds
......@@ -34,7 +34,7 @@ build:
# - 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 .
- docker build --build-arg SSH_PRIVATE_KEY="$SSH_PRIVATE_KEY" --build-arg CI_JOB_TOKEN="${CI_JOB_TOKEN}" --build-arg DEPLOY_TOKEN= "$DEPLOY_TOKEN" -f docker/Dockerfile -t atlasvoyages-docker:prod .
- sh sh/clean.sh
deploy:
......
......@@ -81,7 +81,7 @@ WORKDIR /atlasvoyages
# RUN expect -f ./sh/npm_login_expect nabilelmahiri arigatou@65 "nabil.elmahiri@fractalite.com"
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 sed -i 's/git+ssh:\/\/git@labs.atlasvoyages.com:/git+https:\/\/npm:'$DEPLOY_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