use ssh in ci script
This commit is contained in:
@ -11,7 +11,6 @@ job1:
|
||||
script:
|
||||
- echo "Hallo"
|
||||
- echo "Welt"
|
||||
- echo "$SSH_PRIVATE_KEY"
|
||||
|
||||
job2:
|
||||
stage: hello
|
||||
@ -39,6 +38,12 @@ job3:
|
||||
- apt install -y msp430-libc
|
||||
- apt install -y binutils-msp430
|
||||
- apt install -y gcc-msp430
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "$SSH_PRIVATE_KEY" | ssh-add
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
- ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
|
||||
- chmod 644 ~/.ssh/known_hosts
|
||||
script:
|
||||
- make clean
|
||||
- make all
|
||||
|
Reference in New Issue
Block a user