-
Notifications
You must be signed in to change notification settings - Fork 25
/
buildInternalContainers.ps1
47 lines (41 loc) · 1.05 KB
/
buildInternalContainers.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/env pwsh
$errorActionPreference = "Stop"
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
'PSUseDeclaredVarsMoreThanAssignments', "Internal PS variable"
)]
$PSNativeCommandUseErrorActionPreference = $true
$env:BRANCH = $args[0]
$env:UUID = $(id -u)
$env:SHA_DIR = 0
# # run the build command
Write-Host -ForegroundColor Green "🔨 :: PWSH :: 🔨"
docker compose `
-f ./container/docker-compose.yml `
build `
--no-cache `
--push `
pwsh
# # run the build command
Write-Host -ForegroundColor Green "🔨 :: TASKS :: 🔨"
docker compose `
-f ./container/docker-compose.yml `
build `
--no-cache `
--push `
tasks
# # run the build command
Write-Host -ForegroundColor Green "🔨 :: PWSH-GITLAB :: 🔨"
docker compose `
-f ./container/docker-compose.yml `
build `
--no-cache `
--push `
pwsh-gitlab
# run the build command
Write-Host -ForegroundColor Green "🔨 :: TORIZON-DEV :: 🔨"
docker compose `
-f ./container/docker-compose.yml `
build `
--no-cache `
--push `
torizon-dev