Skip to content
Snippets Groups Projects
Commit 51ac10b3 authored by David Hrbáč's avatar David Hrbáč
Browse files

test ssh the stage

parent 4d05cb6d
No related branches found
No related tags found
4 merge requests!368Update prace.md to document the change from qprace to qprod as the default...,!367Update prace.md to document the change from qprace to qprod as the default...,!366Update prace.md to document the change from qprace to qprod as the default...,!323extended-acls-storage-section
Pipeline #
...@@ -29,6 +29,16 @@ deploy to stage: ...@@ -29,6 +29,16 @@ deploy to stage:
environment: stage environment: stage
stage: deploy stage: deploy
image: ruby:latest image: ruby:latest
before_script:
# install ssh-agent
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# run ssh-agent
- eval $(ssh-agent -s)
# add ssh key stored in SSH_PRIVATE_KEY variable to the agent store
- ssh-add <(echo "$SSH_PRIVATE_KEY")
# disable host key checking (NOTE: makes you susceptible to man-in-the-middle attacks)
# WARNING: use only in docker container, if you use it with shell you will overwrite your user's ssh config
` - mkdir -p ~/.ssh - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
script: script:
- gem install dpl - gem install dpl
- echo $CI_BUILD_REF_NAME - echo $CI_BUILD_REF_NAME
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment