Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Naundorf
HPC_Vehicle_Classification
Commits
340be852
Commit
340be852
authored
May 07, 2021
by
Sintal
Browse files
Update .gitlab-ci.yml
parent
65816b69
Changes
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
340be852
image
:
ubuntu
build-job
:
stage
:
build
script
:
before_script
:
-
echo "Hello, $GITLAB_USER_LOGIN!"
-
'
which
ssh-agent
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
eval $(ssh-agent -s)
-
echo "$SSH_PRIVATE_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
-
ssh-keyscan bwunicluster.scc.kit.edu > ~/.ssh/known_hosts
-
chmod 644 ~/.ssh/known_hosts
test-job1
:
stage
:
test
script
:
-
echo "this job tests fork1"
test-job2
:
stage
:
test
script
:
-
echo "this job tests fork2"
deploy-prod
:
stage
:
deploy
Test SSH
:
script
:
-
echo "this job tests fork3
"
-
ssh $USER_NAME "./scriptPull/pull.sh
"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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