File tree Expand file tree Collapse file tree 18 files changed +41
-32
lines changed Expand file tree Collapse file tree 18 files changed +41
-32
lines changed Original file line number Diff line number Diff line change 1
- NAME = ado-agent-linux
1
+ NAME =
2
2
AZP_URL = https://dev.azure.com/ayoussef-insight/
3
3
AZP_TOKEN =
4
4
AZP_POOL = ado-agent-linux-pool
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ choosing "Show all scopes".
26
26
``` bash
27
27
docker-compose up --build -d --scale agent=2
28
28
```
29
+ For ARM64 architecture, use the following command:
30
+ ``` bash
31
+ docker-compose -f docker-compose-arm64.yml up --build -d --scale agent=2
32
+ ```
29
33
30
34
### Start from docker
31
35
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ services:
6
6
context : .
7
7
args :
8
8
- ARCH=arm64
9
- - AGENT_VERSION=3.224 .1
9
+ - AGENT_VERSION=3.240 .1
10
10
env_file :
11
11
- .env
12
12
volumes :
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ services:
6
6
context : .
7
7
args :
8
8
- ARCH=amd64
9
- - AGENT_VERSION=3.224 .1
9
+ - AGENT_VERSION=3.240 .1
10
10
env_file :
11
11
- .env
12
12
volumes :
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ trap 'cleanup; exit 143' TERM
59
59
print_header " 1. Configuring Azure Pipelines agent..."
60
60
61
61
./config.sh --unattended \
62
- --agent " ${NAME:- $(hostname) } " \
62
+ --agent " ${NAME:- $HOSTNAME } " \
63
63
--url " $AZP_URL " \
64
64
--auth PAT \
65
65
--token $( cat " $AZP_TOKEN_FILE " ) \
Original file line number Diff line number Diff line change 1
- NAME = ado-agent-win
1
+ NAME =
2
2
AZP_URL = https://dev.azure.com/ayoussef-insight/
3
3
AZP_TOKEN =
4
4
AZP_POOL = ado-agent-win-pool
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ RUN (New-Object Net.WebClient).DownloadFile('https://dot.net/v1/dotnet-install.p
50
50
if (-not $currentPath.Contains($installPath)) { setx PATH ($currentPath + ';' + $installPath) } ; \
51
51
if (-not $env:path.Contains($installPath)) { $env:path += ';' + $installPath }
52
52
53
- # Install Node 18
54
- RUN (New-Object Net.WebClient).DownloadFile('https://nodejs.org/dist/v18.16.1 /node-v18.16.1 -x64.msi' , '.\n ode.msi' ); \
53
+ # Install Node 20
54
+ RUN (New-Object Net.WebClient).DownloadFile('https://nodejs.org/dist/v20.14.0 /node-v20.14.0 -x64.msi' , '.\n ode.msi' ); \
55
55
Start-Process msiexec.exe -Wait -ArgumentList '/I node.msi /quiet' ; \
56
56
Remove-Item .\n ode.msi;
57
57
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ services:
5
5
build :
6
6
context : .
7
7
args :
8
- - AGENT_VERSION=3.224 .1
8
+ - AGENT_VERSION=3.240 .1
9
9
env_file :
10
10
- .env
11
11
environment :
Original file line number Diff line number Diff line change 27
27
Write-Host " 1. Configuring Azure Pipelines agent..." - ForegroundColor Cyan
28
28
29
29
.\config.cmd -- unattended `
30
- -- agent " $ ( if (Test-Path Env:NAME) { ${Env: NAME} } else { hostname }) " `
30
+ -- agent " $ ( if (Test-Path Env:NAME) { ${Env: NAME} } else { ${ Env: COMPUTERNAME} }) " `
31
31
-- url " $ ( ${Env: AZP_URL} ) " `
32
32
-- auth PAT `
33
33
-- token " $ ( Get-Content ${Env: AZP_TOKEN_FILE} ) " `
Original file line number Diff line number Diff line change 1
- NAME = hosted-runner-01
1
+ NAME =
2
2
GITHUB_TOKEN =
3
3
GITHUB_REPOSITORY = ayoussef-insight/self-hosted-agents
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ services:
6
6
context : .
7
7
args :
8
8
- ARCH=arm64
9
- - RUNNER_VERSION=2.308 .0
9
+ - RUNNER_VERSION=2.317 .0
10
10
env_file :
11
11
- .env
12
12
volumes :
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ services:
6
6
context : .
7
7
args :
8
8
- ARCH=amd64
9
- - RUNNER_VERSION=2.308 .0
9
+ - RUNNER_VERSION=2.317 .0
10
10
env_file :
11
11
- .env
12
12
volumes :
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ print_header "2. Configuring github actions runner..."
36
36
37
37
./config.sh \
38
38
--unattended \
39
- --name $ NAME \
39
+ --name " ${ NAME:- $HOSTNAME } " \
40
40
--replace \
41
41
--url https://github.com/$GITHUB_REPOSITORY \
42
42
--token $TOKEN
Original file line number Diff line number Diff line change 1
- NAME = hosted-runner-01
1
+ NAME =
2
2
GITHUB_TOKEN =
3
3
GITHUB_REPOSITORY = ayoussef-insight/self-hosted-agents
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ RUN (New-Object Net.WebClient).DownloadFile('https://dot.net/v1/dotnet-install.p
50
50
if (-not $currentPath.Contains($installPath)) { setx PATH ($currentPath + ';' + $installPath) } ; \
51
51
if (-not $env:path.Contains($installPath)) { $env:path += ';' + $installPath }
52
52
53
- # Install Node 18
54
- RUN (New-Object Net.WebClient).DownloadFile('https://nodejs.org/dist/v18.16.1 /node-v18.16.1 -x64.msi' , '.\n ode.msi' ); \
53
+ # Install Node 20
54
+ RUN (New-Object Net.WebClient).DownloadFile('https://nodejs.org/dist/v20.14.0 /node-v20.14.0 -x64.msi' , '.\n ode.msi' ); \
55
55
Start-Process msiexec.exe -Wait -ArgumentList '/I node.msi /quiet' ; \
56
56
Remove-Item .\n ode.msi;
57
57
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ services:
5
5
build :
6
6
context : .
7
7
args :
8
- - RUNNER_VERSION=2.308 .0
8
+ - RUNNER_VERSION=2.317 .0
9
9
env_file :
10
10
- .env
11
11
environment :
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ Remove-Item Env:GITHUB_TOKEN
17
17
18
18
$GITHUB_REPOSITORY = $Env: GITHUB_REPOSITORY
19
19
$GITHUB_TOKEN = $ (Get-Content $Env: GITHUB_TOKEN_FILE )
20
- $Name = if ($env: NAME ) { $env: NAME } else { " hosted-runner-01" }
21
20
22
21
try
23
22
{
28
27
Write-Host " 2. Configuring github actions runner..." - ForegroundColor Cyan
29
28
30
29
.\config.cmd -- unattended `
31
- -- name " $Name " `
30
+ -- name " $ ( if ( Test-Path Env:NAME) { ${ Env: NAME} } else { ${ Env: COMPUTERNAME} } ) " `
32
31
-- url " https://github.com/$GITHUB_REPOSITORY " `
33
32
-- token " $Token " `
34
33
- -replace
Original file line number Diff line number Diff line change @@ -16,19 +16,25 @@ resource acrResource 'Microsoft.ContainerRegistry/registries@2021-06-01-preview'
16
16
}
17
17
properties : {
18
18
adminUserEnabled : true
19
- policies : acrSku == 'Premium' ? {
20
- quarantinePolicy : {
21
- status : 'enabled'
22
- }
23
- trustPolicy : {
24
- status : 'enabled'
25
- type : 'Notary'
26
- }
27
- retentionPolicy : {
28
- status : 'enabled'
29
- days : 30
30
- }
31
- } : {}
19
+ publicNetworkAccess : acrSku == 'Premium' ? 'Disabled' : 'Enabled'
20
+ networkRuleSet : acrSku == 'Premium' ? {
21
+ defaultAction : 'Deny'
22
+ } : null
23
+ policies : acrSku == 'Premium'
24
+ ? {
25
+ quarantinePolicy : {
26
+ status : 'enabled'
27
+ }
28
+ trustPolicy : {
29
+ status : 'enabled'
30
+ type : 'Notary'
31
+ }
32
+ retentionPolicy : {
33
+ status : 'enabled'
34
+ days : 30
35
+ }
36
+ }
37
+ : {}
32
38
}
33
39
}
34
40
You can’t perform that action at this time.
0 commit comments