Unverified Commit d5c631c6 authored by Maxime Lefrançois's avatar Maxime Lefrançois
Browse files

updated ci

parent 74c482ca
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ variables:
    GIT_DEPTH: 0
    SAREF_DEV_KEY: <my_private_key>
    SAREF_PORTAL_KEY: <my_private_key>
    SAREF_PORT: <port>

stages:
  - test
@@ -51,11 +52,12 @@ deploy-report:
  script:
    - apk update
    - apk add openssh
    - echo "172.29.10.32    saref.etsi.org" >> /etc/hosts
    - eval $(ssh-agent -s)
    - ssh-add <(echo "$SAREF_DEV_KEY")
    - mkdir -p ~/.ssh
    - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
    - scp -P 29419 -pr target/site saref-dev@saref.etsi.org:~/snapshot/$CI_PIPELINE_ID
    - scp -P $SAREF_PORT -O -pr target/site saref-dev@saref.etsi.org:~/snapshot/$CI_PIPELINE_ID
    - echo "SAREF pipeline report  https://saref.etsi.org/snapshot/$CI_PIPELINE_ID/report.html" 
    - exit $(test -f target/success) $?
  except: