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
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
340be852
image
:
ubuntu
image
:
ubuntu
build-job
:
before_script
:
stage
:
build
-
echo "Hello, $GITLAB_USER_LOGIN!"
script
:
-
'
which
ssh-agent
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
echo "Hello, $GITLAB_USER_LOGIN!"
-
eval $(ssh-agent -s)
-
echo "$SSH_PRIVATE_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
test-job1
:
-
mkdir -p ~/.ssh
stage
:
test
-
chmod 700 ~/.ssh
script
:
-
ssh-keyscan bwunicluster.scc.kit.edu > ~/.ssh/known_hosts
-
echo "this job tests fork1"
-
chmod 644 ~/.ssh/known_hosts
test-job2
:
Test SSH
:
stage
:
test
script
:
script
:
-
ssh $USER_NAME "./scriptPull/pull.sh"
-
echo "this job tests fork2"
deploy-prod
:
stage
:
deploy
script
:
-
echo "this job tests fork3"
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