Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
R ecosystem
WindowsR
Commits
8bc8b087
Commit
8bc8b087
authored
Oct 01, 2020
by
Jean-Francois Rey
☕
Browse files
bugfix install gitlab
parent
bcf69c5b
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ansible_provisioning/files/install-gitlab-runner.ps1
View file @
8bc8b087
...
...
@@ -5,7 +5,9 @@ Write-Output "Downloading Gitlab Runners Last Version"
## download last relase name
$url
=
"https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-windows-amd64.exe"
$output
=
'C:\GitLab-Runner\gitlab-runner.exe'
New-Item
-Path
'c:\'
-Name
"GitLab-Runner"
-ItemType
"directory"
if
(
-Not
(
Test-Path
-Path
'C:\GitLab-Runner'
))
{
New-Item
-Path
'c:\'
-Name
"GitLab-Runner"
-ItemType
"directory"
}
$wcR
=
New-Object
System.Net.WebClient
Write-Output
"Downloading
$url
"
...
...
@@ -18,8 +20,9 @@ $oldpath = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentC
$newPath
=
"
$oldpath
;C:\GitLab-Runner\\"
Set-ItemProperty
-Path
'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment'
-Name
PATH
-Value
$newPath
if
(
-Not
Test-Path
-Path
$env
.
USERPROFILE
\.ssh
)
{
New-Item
-Path
$env
.
USERPROFILE
-NAME
".ssh"
-ItemType
"directory"
Write-Output
"Add gitlab server ssh key identifier to user known_hosts"
if
(
-Not
(
Test-Path
-Path
$
env
:
USERPROFILE
\.ssh
)
)
{
New-Item
-Path
$
env
:
USERPROFILE
-NAME
".ssh"
-ItemType
"directory"
ssh-keyscan
-t
ecdsa
-H
gitlab.paca.inrae.fr
>
~/.ssh/known_hosts
}
else
{
...
...
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