mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-06-07 07:59:54 +00:00
before script
This commit is contained in:
parent
5c709764fc
commit
c80f46ffff
@ -1,8 +1,11 @@
|
||||
image: geerlingguy/docker-debian9-ansible:latest
|
||||
|
||||
before_script:
|
||||
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
|
||||
deploy_to_webserver:
|
||||
stage: deploy
|
||||
|
Loading…
x
Reference in New Issue
Block a user