Loading .gitlab-ci.yml +11 −8 Original line number Original line Diff line number Diff line variables: variables: SAREF_DEV_KEY: <my_private_key> SAREF_PORTAL_KEY: <my_private_key> SAREF_PORTAL_KEY: <my_private_key> before_script: - eval $(ssh-agent -s) - ssh-add <(echo "$SAREF_PORTAL_KEY") - mkdir -p ~/.ssh - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' stages: stages: - pipeline - pipeline - staging - staging Loading Loading @@ -42,10 +37,14 @@ prepare-release: junit: target/report_output.xml junit: target/report_output.xml staging: staging: image: maximelefrancois86/alpine-ssh-rsync image: maximelefrancois86/alpine-ssh-rsynce stage: staging stage: staging script: script: - scp -pr '-P 29419' target/site saref-portal@saref.etsi.org:~/staging/$CI_PIPELINE_ID - 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 -pr '-P 29419' target/site saref-dev@saref.etsi.org:~/staging/$CI_PIPELINE_ID - echo "\tSAREF staging portal https\://saref.etsi.org/staging/$CI_PIPELINE_ID/" - echo "\tSAREF staging portal https\://saref.etsi.org/staging/$CI_PIPELINE_ID/" - exit $(test -f target/success) $? - exit $(test -f target/success) $? Loading @@ -54,6 +53,10 @@ deploy: stage: release stage: release when: manual when: manual script: script: - eval $(ssh-agent -s) - ssh-add <(echo "$SAREF_PORTAL_KEY") - mkdir -p ~/.ssh - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - rsync -rtcv -e 'exssh -p 29419' error-documents saref-portal@saref.etsi.org:~/error-documents - rsync -rtcv -e 'exssh -p 29419' error-documents saref-portal@saref.etsi.org:~/error-documents - rsync -rtcv -e 'ssh -p 29419' target/site saref-portal@saref.etsi.org:~/site - rsync -rtcv -e 'ssh -p 29419' target/site saref-portal@saref.etsi.org:~/site - scp -pr '-P 29419' target/dataset saref-portal@saref.etsi.org:~/dataset-new - scp -pr '-P 29419' target/dataset saref-portal@saref.etsi.org:~/dataset-new Loading Loading
.gitlab-ci.yml +11 −8 Original line number Original line Diff line number Diff line variables: variables: SAREF_DEV_KEY: <my_private_key> SAREF_PORTAL_KEY: <my_private_key> SAREF_PORTAL_KEY: <my_private_key> before_script: - eval $(ssh-agent -s) - ssh-add <(echo "$SAREF_PORTAL_KEY") - mkdir -p ~/.ssh - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' stages: stages: - pipeline - pipeline - staging - staging Loading Loading @@ -42,10 +37,14 @@ prepare-release: junit: target/report_output.xml junit: target/report_output.xml staging: staging: image: maximelefrancois86/alpine-ssh-rsync image: maximelefrancois86/alpine-ssh-rsynce stage: staging stage: staging script: script: - scp -pr '-P 29419' target/site saref-portal@saref.etsi.org:~/staging/$CI_PIPELINE_ID - 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 -pr '-P 29419' target/site saref-dev@saref.etsi.org:~/staging/$CI_PIPELINE_ID - echo "\tSAREF staging portal https\://saref.etsi.org/staging/$CI_PIPELINE_ID/" - echo "\tSAREF staging portal https\://saref.etsi.org/staging/$CI_PIPELINE_ID/" - exit $(test -f target/success) $? - exit $(test -f target/success) $? Loading @@ -54,6 +53,10 @@ deploy: stage: release stage: release when: manual when: manual script: script: - eval $(ssh-agent -s) - ssh-add <(echo "$SAREF_PORTAL_KEY") - mkdir -p ~/.ssh - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - rsync -rtcv -e 'exssh -p 29419' error-documents saref-portal@saref.etsi.org:~/error-documents - rsync -rtcv -e 'exssh -p 29419' error-documents saref-portal@saref.etsi.org:~/error-documents - rsync -rtcv -e 'ssh -p 29419' target/site saref-portal@saref.etsi.org:~/site - rsync -rtcv -e 'ssh -p 29419' target/site saref-portal@saref.etsi.org:~/site - scp -pr '-P 29419' target/dataset saref-portal@saref.etsi.org:~/dataset-new - scp -pr '-P 29419' target/dataset saref-portal@saref.etsi.org:~/dataset-new Loading