Skip to content
Snippets Groups Projects
Commit 9a452520 authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

let's try this again...

parent 7c0804b9
1 merge request!1465try chmoding key
Pipeline #11939 failed
This commit is part of merge request !1465. Comments created here will be created in the context of that merge request.
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
image: python:3.10-slim image: python:3.10-slim
before_script: before_script:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- chmod 400 "$SSH_PRIVATE_KEY"
- ssh-add "$SSH_PRIVATE_KEY"
- chmod 700 ~/.ssh - chmod 700 ~/.ssh
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- '[[ -f /.dockerenv ]] && echo -e "Host *\\n\\tStrictHostKeyChecking no\\n\\n" > ~/.ssh/config' - '[[ -f /.dockerenv ]] && echo -e "Host *\\n\\tStrictHostKeyChecking no\\n\\n" > ~/.ssh/config'
script: script:
- mkdir -p /home/ssa/bin - mkdir -p /home/ssa/bin
......
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