Commit 47f22f8f authored by janis.streib's avatar janis.streib 🦉
Browse files

UPD: moved ssh-agent to deploy setp

parent 99d89beb
Pipeline #93506 passed with stages
in 6 minutes and 46 seconds
......@@ -13,16 +13,6 @@ before_script:
- npm install
- cd ..
## Deployment
- 'which ssh-agent || ( apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
stages:
- build
- lint
......@@ -56,6 +46,13 @@ frontend-audit:
deploy_devel_devel:
stage: deploy
script:
- 'which ssh-agent || ( apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- ssh net-suite-devel@net-web09.scc.kit.edu "${CI_PIPELINE_ID}"
environment:
name: devel-devel
......
Supports Markdown
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