Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scc-net
netvs
netvs-core
Commits
47f22f8f
Commit
47f22f8f
authored
Jun 18, 2020
by
janis.streib
🦉
Browse files
UPD: moved ssh-agent to deploy setp
parent
99d89beb
Pipeline
#93506
passed with stages
in 6 minutes and 46 seconds
Changes
1
Pipelines
7
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
47f22f8f
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment