Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
G
gitlab runner instalation script linux
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nico Baruna Putra
gitlab runner instalation script linux
Commits
114b099c
Commit
114b099c
authored
May 27, 2021
by
Nico Baruna Putra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add gitlabrunner for linux
parent
9c74f68e
Pipeline
#19297
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
gitlabrunner-linux-installer.sh
gitlabrunner-linux-installer.sh
+10
-0
winsetupcicd.ps1
winsetupcicd.ps1
+8
-0
No files found.
gitlabrunner-linux-installer.sh
0 → 100644
View file @
114b099c
echo
"================ ITM GITLAB RUNNER SET SCRIPT =============="
echo
"Installing npm and git"
sudo
yum
install
nodejs
-y
&&
sudo
yum
install
npm
-y
&&
sudo
npm
install
pm2@l
$
echo
"installing gitlab runner"
curl
-L
"https://packages.gitlab.com/install/repositories/runner/gitlab-runner/
$
sudo yum install gitlab-runner -y
echo "
====
configure gitlab
runner
===
"
sudo gitlab-runner register
winsetupcicd.ps1
View file @
114b099c
...
...
@@ -22,7 +22,9 @@ Write-Host -NoNewLine 'Press any key to continue...';
$null
=
$Host
.UI.RawUI.ReadKey
(
'NoEcho,IncludeKeyDown'
)
;
Write-Output
"\n"
$toolsDirectory
=
"c:/tools/nuget.exe"
$toolsPath
=
"c:/tools"
$gitlalRunnerDirectory
=
"c:/tools/gitlab_runner/gitlabrunner.exe"
$gitlalRunnerPath
=
"c:/tools/gitlab_runner"
$msbuildToolsurl
=
"https://download.visualstudio.microsoft.com/download/pr/9fcc1f0c-c63f-4424-bc46-7351a59fba06/1ed7863dc633c57c42a88c5cef907048/vs_community.exe"
$msbuildToolsDirectory
=
"c:/tools/msbuild.exe"
$nugetUrl
=
"https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
...
...
@@ -33,6 +35,9 @@ Write-Output "download nuget"
if
(
Test-Path
$toolsDirectory
-PathType Any
)
{
Write-Output
"tools folder exist"
}
else
{
if
(!
Test-Path
$toolsPath
-PathType Any
){
New-Item
-ItemType Directory -Force -Path
$toolsPath
}
[
Net.ServicePointManager]::SecurityProtocol
=
[
Net.SecurityProtocolType]::Tls12
Invoke-WebRequest
-Uri
$nugetUrl
-OutFile
$toolsDirectory
}
...
...
@@ -52,6 +57,9 @@ Write-Output "download gitlab runner"
if
(
Test-Path
$gitlalRunnerDirectory
-PathType Any
)
{
Write-Output
"gitlab runner folder exist"
}
else
{
if
(!(
Test-Path
$gitlalRunnerPath
-PathType Any
)){
New-Item
-ItemType Directory -Force -Path
$gitlalRunnerPath
}
Invoke-WebRequest
-Uri
$gitlabRunnerUrl
-OutFile
$gitlalRunnerDirectory
}
#setting gitlab runner
...
...
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