Commit ee29f609 authored by Mark Lapierre's avatar Mark Lapierre

Merge branch 'ml-update-clone-deploy-key-test' into 'master'

Update test using runner docker and ssh client

Closes #223622

See merge request gitlab-org/gitlab!35001
parents 94f2af5c d27f984a
...@@ -20,7 +20,7 @@ module QA ...@@ -20,7 +20,7 @@ module QA
resource.project = @project resource.project = @project
resource.name = @runner_name resource.name = @runner_name
resource.tags = %w[qa docker] resource.tags = %w[qa docker]
resource.image = 'gitlab/gitlab-runner:ubuntu' resource.image = 'gitlab/gitlab-runner:alpine'
end end
end end
...@@ -51,6 +51,7 @@ module QA ...@@ -51,6 +51,7 @@ module QA
gitlab_ci = <<~YAML gitlab_ci = <<~YAML
cat-config: cat-config:
script: script:
- apk add --update --no-cache openssh-client
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- ssh-keyscan -p #{@repository_location.port} #{@repository_location.host} >> ~/.ssh/known_hosts - ssh-keyscan -p #{@repository_location.port} #{@repository_location.host} >> ~/.ssh/known_hosts
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment