Commit 3cedd671 authored by Maxime Lefrançois's avatar Maxime Lefrançois
Browse files

Update .gitlab-ci.yml

parent cb2b7f5d
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
variables:
    SAREF_DEV_KEY: <my_private_key>
    SAREF_PORTAL_KEY: <my_private_key>
    DEV_KEY: <my_private_key>
    PORTAL_KEY: <my_private_key>

stages:
  - pipeline
@@ -45,7 +45,7 @@ staging:
  stage: staging
  script:
    - eval $(ssh-agent -s)
    - ssh-add <(echo "$SAREF_DEV_KEY")
    - ssh-add <(echo "$DEV_KEY")
    - mkdir -p ~/.ssh
    - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
    - scp -pr target/site saref-dev@saref.etsi.org:~/staging/$CI_PIPELINE_ID
@@ -58,7 +58,7 @@ deploy:
  when: manual
  script:
    - eval $(ssh-agent -s)
    - ssh-add <(echo "$SAREF_PORTAL_KEY")
    - ssh-add <(echo "$PORTAL_KEY")
    - mkdir -p ~/.ssh
    - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
    - rsync -rcv error-documents/ saref-portal@saref.etsi.org:~/error-documents