mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-06-07 16:09:53 +00:00
gitlab-cy.yml
This commit is contained in:
parent
3536236ab2
commit
c2d5c80590
@ -2,10 +2,19 @@ image: geerlingguy/docker-debian9-ansible
|
|||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- which ssh-agent || ( apt-get update -qq -y && apt-get install openssh-client -qq -y )
|
- which ssh-agent || ( apt-get update -qq -y && apt-get install openssh-client -qq -y )
|
||||||
|
|
||||||
|
# Run ssh-agent (inside the build environment)
|
||||||
- eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
|
|
||||||
|
# Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent
|
||||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
||||||
- mkdir -p ~/.ssh
|
|
||||||
- chmod 700 ~/.ssh
|
#- mkdir -p ~/.ssh
|
||||||
|
#- chmod 700 ~/.ssh
|
||||||
|
|
||||||
|
#Verifying the SSH host keys
|
||||||
|
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
|
||||||
|
- chmod 644 ~/.ssh/known_hosts
|
||||||
|
|
||||||
deploy_to_webserver:
|
deploy_to_webserver:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
3
know
Normal file
3
know
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
35.180.10.123 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/LpJEVZci1zBq6zDW2cztCmwOO4cPYFSHG31ZdZu6gRsFy4Jhp68/+yPMNZh6xTB4dFqQd8Q5Vo9T7rrNWPgAQUVAX1RBPxS3ytX77msqp7VWpBg/XXh0jbSpqag8LkS9ujf1wh3Ymo0YsOAW8ypp10an/ebd0Fbx+R+G8v60KMea4HFfLbUnZmGP3hLonj0BO6RZmP+7ZzpEX69qfnCblOkDoKxurgJHDRaH/l9zEZ9D18v7Vnm/he38hY39HnmsTeGnKGbF4Yzqn3IyPHaGWQIfRTBrL4/z55n9eSoZgu/IrNcaPq0/YK4xZSOoZ7GOj2rKynFvmL31Pqfk7rFb
|
||||||
|
35.180.10.123 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMltdTTmIzI6m+a3ueBItYjovF0KTiTFVAb4Dvsj18lNzH/OC29zs6ae0alf7/K5KJwK03BtGxky9Q/uGP90/X0=
|
||||||
|
35.180.10.123 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKy45mYX2lIbzw5Onr1nwwxQde+aUxG9FPJYAEZNtd8y
|
Loading…
x
Reference in New Issue
Block a user