From 547783f2418d2f6f2836309e1f8db8fa50eb2466 Mon Sep 17 00:00:00 2001 From: nabilelmahiri <nabil.elmahiri@fractalite.com> Date: Wed, 6 Mar 2019 16:35:55 +0100 Subject: [PATCH] using npm login --- .gitlab-ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 06cd2d1..b712b94 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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_64" | 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 -- libgit2 0.26.0