Commit 5693a025 by nabil el mahiri

using npm login

parent d5af2c99
Pipeline #348 failed with stages
in 11 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
...@@ -26,7 +26,7 @@ build: ...@@ -26,7 +26,7 @@ build:
- master - master
script: script:
- chmod +x sh/run.sh - chmod +x sh/run.sh
- docker build -f docker/Dockerfile -t atlasvoyages-docker:prod . - docker build --build-arg SSH_PRIVATE_KEY="$SSH_PRIVATE_KEY" -f docker/Dockerfile -t atlasvoyages-docker:prod .
- sh sh/clean.sh - sh sh/clean.sh
deploy: deploy:
......
...@@ -50,8 +50,22 @@ COPY package*.json /atlasvoyages/ ...@@ -50,8 +50,22 @@ COPY package*.json /atlasvoyages/
# RUN echo "//<npm-registry>:8080/:_authToken=KB9DEBiM5vNeGPwinPuj" > ~/.npmrc # RUN echo "//<npm-registry>:8080/:_authToken=KB9DEBiM5vNeGPwinPuj" > ~/.npmrc
# Take an SSH key as a build argument.
RUN git clone http://labs.atlasvoyages.com/pine/theme-atlasvoyages.git -b 0.3-beta-v1 ARG SSH_PRIVATE_KEY
# Install dependencies required to git clone.
RUN apt-get -y install openssh
# 1. Create the SSH directory.
# 2. Populate the private key file.
# 3. Set the required permissions.
# 4. Add github to our list of known hosts for ssh.
RUN mkdir -p /root/.ssh/ && \
echo "$SSH_PRIVATE_KEY" > /root/.ssh/id_rsa && \
chmod -R 600 /root/.ssh/ && \
ssh-keyscan -t rsa labs.atlasvoyages.com >> ~/.ssh/known_hosts
RUN git clone git@labs.atlasvoyages.com:pine/theme-atlasvoyages.git -b 0.3-beta-v1
......
...@@ -6,27 +6,27 @@ ...@@ -6,27 +6,27 @@
"author": "Fractalite", "author": "Fractalite",
"license": "UNLICENSED", "license": "UNLICENSED",
"dependencies": { "dependencies": {
"pine": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine/pine.git#0.3", "pine": "git+ssh://git@labs.atlasvoyages.com/pine/pine.git#0.3",
"pine-express": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine/pine-express.git#0.3-dev", "pine-express": "git+ssh://git@labs.atlasvoyages.com/pine/pine-express.git#0.3-dev",
"pine-mongo": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine/pine-mongo.git#0.3", "pine-mongo": "git+ssh://git@labs.atlasvoyages.com/pine/pine-mongo.git#0.3",
"pine-blocks": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine/pine-blocks.git#0.3", "pine-blocks": "git+ssh://git@labs.atlasvoyages.com/pine/pine-blocks.git#0.3",
"pine-angular": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine/pine-angular.git#0.3", "pine-angular": "git+ssh://git@labs.atlasvoyages.com/pine/pine-angular.git#0.3",
"pine-access": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine/pine-access.git#0.3", "pine-access": "git+ssh://git@labs.atlasvoyages.com/pine/pine-access.git#0.3",
"pine-admin": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine/pine-admin.git#0.3", "pine-admin": "git+ssh://git@labs.atlasvoyages.com/pine/pine-admin.git#0.3",
"pine-urls": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine/pine-urls.git#0.3", "pine-urls": "git+ssh://git@labs.atlasvoyages.com/pine/pine-urls.git#0.3",
"pine-checkout": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine/pine-checkout.git#0.3", "pine-checkout": "git+ssh://git@labs.atlasvoyages.com/pine/pine-checkout.git#0.3",
"pine-analytics": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine/pine-analytics.git#0.3", "pine-analytics": "git+ssh://git@labs.atlasvoyages.com/pine/pine-analytics.git#0.3",
"pine-hermes": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine-hermes/pine-hermes.git#0.3", "pine-hermes": "git+ssh://git@labs.atlasvoyages.com/pine-hermes/pine-hermes.git#0.3",
"pine-hermes-air": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine-hermes/pine-hermes-air.git#0.3-baggage", "pine-hermes-air": "git+ssh://git@labs.atlasvoyages.com/pine-hermes/pine-hermes-air.git#0.3-baggage",
"pine-hermes-lodge": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine-hermes/pine-hermes-lodge.git#0.4-fix-hotel-dest", "pine-hermes-lodge": "git+ssh://git@labs.atlasvoyages.com/pine-hermes/pine-hermes-lodge.git#0.4-fix-hotel-dest",
"pine-payzone": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine/pine-payzone.git#0.3", "pine-payzone": "git+ssh://git@labs.atlasvoyages.com/pine/pine-payzone.git#0.3",
"pine-payments": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine/pine-payments.git#0.3", "pine-payments": "git+ssh://git@labs.atlasvoyages.com/pine/pine-payments.git#0.3",
"pine-i18n": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine/pine-i18n.git#0.3-newdev", "pine-i18n": "git+ssh://git@labs.atlasvoyages.com/pine/pine-i18n.git#0.3-newdev",
"pine-avi-extra": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine/pine-avi-extras.git#master", "pine-avi-extra": "git+ssh://git@labs.atlasvoyages.com/pine/pine-avi-extras.git#master",
"hermes-tour": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/tour/hermes-tour.git#v0.2", "hermes-tour": "git+ssh://git@labs.atlasvoyages.com/tour/hermes-tour.git#v0.2",
"hermes-travel": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine/pine-travel.git#0.3-beta-v1", "hermes-travel": "git+ssh://git@labs.atlasvoyages.com/pine/pine-travel.git#0.3-beta-v1",
"theme-atlasvoyages": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine/theme-atlasvoyages.git#0.3-beta-v1", "theme-atlasvoyages": "git+ssh://git@labs.atlasvoyages.com/pine/theme-atlasvoyages.git#0.3-beta-v1",
"pine-redis": "git+http://nabilelmahiri:_uLszKm2QvRcG_GCojPj@labs.atlasvoyages.com/pine/pine-redis.git#0.3-newdev" "pine-redis": "git+ssh://git@labs.atlasvoyages.com/pine/pine-redis.git#0.3-newdev"
}, },
......
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