Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
gitlab-runner
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1,989
Issues
1,989
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
189
Merge Requests
189
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GitLab.org
gitlab-runner
Commits
cdafca11
Commit
cdafca11
authored
Jun 19, 2015
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ssh identity file to registration command and make ssh password optional
parent
c4c771db
Pipeline
#47237
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
CHANGELOG.md
CHANGELOG.md
+1
-0
commands/register.go
commands/register.go
+10
-2
No files found.
CHANGELOG.md
View file @
cdafca11
...
...
@@ -2,6 +2,7 @@ v 0.4.0
-
Added CI=true and GITLAB_CI=true to environment variables
-
Added output_limit (in kilobytes) to runner config which allows to enlarge default build log size
-
Added support for custom variables received from CI
-
Added support for SSH identity file
-
Optimize build path to make it shorter, more readable and allowing to fix shebang issue
-
Make the debug log human readable
-
Make default build log limit set to 4096 (4MB)
...
...
commands/register.go
View file @
cdafca11
...
...
@@ -125,9 +125,12 @@ func (s *RegistrationContext) askSSH(runnerConfig *common.RunnerConfig, serverle
if
user
:=
s
.
ask
(
"ssh-user"
,
"Please enter the SSH user (eg. root):"
);
user
!=
""
{
runnerConfig
.
SSH
.
User
=
&
user
}
if
password
:=
s
.
ask
(
"ssh-password"
,
"Please enter the SSH password (eg. docker.io):"
);
password
!=
""
{
if
password
:=
s
.
ask
(
"ssh-password"
,
"Please enter the SSH password (eg. docker.io):"
,
true
);
password
!=
""
{
runnerConfig
.
SSH
.
Password
=
&
password
}
if
identityFile
:=
s
.
ask
(
"ssh-identity-file"
,
"Please enter path to SSH identity file (eg. /home/user/.ssh/id_rsa):"
,
true
);
identityFile
!=
""
{
runnerConfig
.
SSH
.
IdentityFile
=
&
identityFile
}
}
func
(
s
*
RegistrationContext
)
touchConfig
()
{
...
...
@@ -370,7 +373,12 @@ func init() {
cli
.
StringFlag
{
Name
:
"ssh-password"
,
Usage
:
"SSH client password"
,
EnvVar
:
"SSH_USER"
,
EnvVar
:
"SSH_PASSWORD"
,
},
cli
.
StringFlag
{
Name
:
"ssh-identity-file"
,
Usage
:
"SSH identity file"
,
EnvVar
:
"SSH_IDENTITY_FILE"
,
},
},
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment