Commit feb1751f by nabil el mahiri

npm login

parent 8d5f51fb
Pipeline #464 failed in 0 seconds
...@@ -50,24 +50,24 @@ stages: ...@@ -50,24 +50,24 @@ stages:
# - docker run -d -p 7778:80 --name atlasvoyages-docker-prod atlasvoyages-docker:prod # - docker run -d -p 7778:80 --name atlasvoyages-docker-prod atlasvoyages-docker:prod
# - sh sh/clean.sh # - sh sh/clean.sh
build: build:
stage: build stage: build
environment: Production environment: Production
tags: tags:
- atlasvoyages-runner - atlasvoyages-runner
only: only:
- master - master
script: script:
# - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' # - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# # Run ssh-agent (inside the build environment) # # Run ssh-agent (inside the build environment)
# - eval $(ssh-agent -s) # - eval $(ssh-agent -s)
# # Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store # # Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
# - ssh-add <(echo "$SSH_PRIVATE_KEY_64" | base64 -d) # - ssh-add <(echo "$SSH_PRIVATE_KEY_64" | base64 -d)
# - mkdir -p ~/.ssh # - mkdir -p ~/.ssh
# - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' # - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- chmod +x sh/run.sh - chmod +x sh/run.sh
- docker build --build-arg SSH_PRIVATE_KEY="$SSH_PRIVATE_KEY_TEST" --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_TEST" --build-arg CI_JOB_TOKEN="${CI_JOB_TOKEN}" -f docker/Dockerfile -t atlasvoyages-docker:prod .
- sh sh/clean.sh - sh sh/clean.sh
deploy: deploy:
stage: deploy stage: deploy
......
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