gitlab-cy.yml

This commit is contained in:
s0dy 2018-11-18 00:06:57 +01:00
parent 3536236ab2
commit c2d5c80590
2 changed files with 14 additions and 2 deletions

View File

@ -2,10 +2,19 @@ image: geerlingguy/docker-debian9-ansible
before_script:
- 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)
# Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent
- 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:
stage: deploy

3
know Normal file
View 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