Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image: node:latest
- before_script:
- - mkdir -p ~/.ssh
- - touch ~/.ssh/dev-karlilu2.pem
- - echo "$SSH_PRIVATE_KEY" > ~/.ssh/dev-karlilu2.pem
- - chmod 400 ~/.ssh/dev-karlilu2.pem
- - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
- - chmod 644 ~/.ssh/known_hosts
- stages:
- - build
- build-dev:
- stage: build
- only:
- - ci-cd-test
- script:
- - ls ~/.ssh
- - ssh -i ~/.ssh/dev-karlilu2.pem ubuntu@dev.karlilu.com "mkdir test_gitlab_ci_ssh"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement