Newer
Older
variables:
SAREF_PORTAL_KEY: <my_private_key>
build:
stage: build
script:
- mvn package
artifacts:
paths:
deploy:
stage: deploy
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'
- scp -pr target/saref-pipeline.jar saref-dev@saref.etsi.org:~/saref-pipeline.jar