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
33d55f1f
Commit
33d55f1f
authored
Nov 03, 2020
by
Nico Baruna Putra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initiate
parents
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
94 additions
and
0 deletions
+94
-0
config.toml
config.toml
+5
-0
windowscicdsetup.sh
windowscicdsetup.sh
+26
-0
winsetupcicd.ps1
winsetupcicd.ps1
+63
-0
No files found.
config.toml
0 → 100644
View file @
33d55f1f
concurrent
=
1
check_interval
=
0
[session_server]
session_timeout
=
1800
windowscicdsetup.sh
0 → 100644
View file @
33d55f1f
toolsDirectory
=
"C:
\U
sers
\n
ico_putra
\D
ocuments
\t
ools"
gitlalRunnerDirectory
=
"C:
\U
sers
\n
ico_putra
\D
ocuments
\t
ools
\g
itlab_runner"
#!check if folder exist
[
-d
$toolsDirectory
]
&&
echo
"Tools directory exist"
||
echo
"creating tools dir"
&&
mkdir
$toolsDirectory
&&
echo
"success create dir"
# Bash
source
yourscript.sh
#download nuget.exe
echo
"downloading nuget.exe"
wget
-nc
https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
-P
$toolsDirectory
&&
echo
"success"
||
echo
"error downloading"
#download gitlab runner
echo
"download gitlab runner.."
[
-d
$gitlalRunnerDirectory
]
&&
echo
"Gitlab Runner directory already exist"
||
echo
"creating gitlab runner directory"
&&
mkdir
$gitlalRunnerDirectory
wget
-nc
https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-windows-386.exe
-P
$gitlalRunnerDirectory
#setting gitlab runner
echo
"setting gitlab runner"
#cd $gitlalRunnerDirectory
runner
=
$(
find
.
-type
f
)
$runner
install
&&
echo
"instalation success"
||
echo
"someting wrong in instalation"
$runner
start
&&
echo
"runner start"
#cd $gitlalRunnerDirectory
$runner
register
$runner
start
winsetupcicd.ps1
0 → 100644
View file @
33d55f1f
$logo
=
@
"
.
((
##((#
,((((((
(( #((((*
(((# ((( .(( *(#((#((((( /#(/ .#(#
#((((# (* .## ## (((#( ##*(#
((((#( #( .(# (#/ ((#(# (#
,#(# ## (# (#/ # ##
(. (# (# /(/ (#
PT. INDO TAMBANGRAYA MEGAH
============ CI/CD setup script for .net apps ========
"
@
Write-Output
$logo
Write-Host
-NoNewLine
'Press any key to continue...'
;
$null
=
$Host
.UI.RawUI.ReadKey
(
'NoEcho,IncludeKeyDown'
)
;
Write-Output
"\n"
$toolsDirectory
=
"c:/tools/nuget.exe"
$gitlalRunnerDirectory
=
"c:/tools/gitlab_runner/gitlabrunner.exe"
$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"
$gitlabRunnerUrl
=
"https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-windows-386.exe"
Write-Output
"download nuget"
#!check if folder exist
if
(
Test-Path
$toolsDirectory
-PathType Any
)
{
Write-Output
"tools folder exist"
}
else
{
[
Net.ServicePointManager]::SecurityProtocol
=
[
Net.SecurityProtocolType]::Tls12
Invoke-WebRequest
-Uri
$nugetUrl
-OutFile
$toolsDirectory
}
Write-Output
"download msbuild"
#!check if folder exist
if
(
Test-Path
$msbuildToolsDirectory
-PathType Any
)
{
Write-Output
"msbuild folder exist"
}
else
{
[
Net.ServicePointManager]::SecurityProtocol
=
[
Net.SecurityProtocolType]::Tls12
Invoke-WebRequest
-Uri
$msbuildToolsurl
-OutFile
$msbuildToolsDirectory
Start-Process
$msbuildToolsDirectory
-Wait
#Invoke-Expression $msbuildToolsDirectory
}
Write-Output
"download gitlab runner"
if
(
Test-Path
$gitlalRunnerDirectory
-PathType Any
)
{
Write-Output
"gitlab runner folder exist"
}
else
{
Invoke-WebRequest
-Uri
$gitlabRunnerUrl
-OutFile
$gitlalRunnerDirectory
}
#setting gitlab runner
Write-Output
"setting gitlab runner"
Invoke-Expression
$(
$gitlalRunnerDirectory
+
" install"
)
Invoke-Expression
$(
$gitlalRunnerDirectory
+
" register"
)
Invoke-Expression
$(
$gitlalRunnerDirectory
+
" start"
)
Write-Output
"===== SCRIPT DONE======="
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