File tree Expand file tree Collapse file tree 4 files changed +16
-10
lines changed
Expand file tree Collapse file tree 4 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,10 @@ $IsPublishedBuild = ($env:APPVEYOR_REPO_BRANCH -eq "main" -or $env:APPVEYOR_REPO
44$version = @ { $true = $env: APPVEYOR_BUILD_VERSION ; $false = " 99.99.99" }[$env: APPVEYOR_BUILD_VERSION -ne $NULL ];
55$framework = " net6.0"
66$image = " datalust/seqcli"
7- $archs = @ (" x64" , " arm64" )
7+ $archs = @ (
8+ @ { rid = " x64" ; platform = " linux/amd64" },
9+ @ { rid = " arm64" ; platform = " linux/arm/v8" }
10+ )
811
912function Execute-Tests
1013{
@@ -24,11 +27,11 @@ function Execute-Tests
2427
2528function Build-DockerImage ($arch )
2629{
27- $rid = " linux-$arch "
30+ $rid = " linux-$ ( $ arch.rid ) "
2831 & dotnet publish src/ SeqCli/ SeqCli.csproj - c Release -f $framework - r $rid -- self- contained / p:VersionPrefix= $version
2932 if ($LASTEXITCODE -ne 0 ) { exit 2 }
3033
31- & docker build -f dockerfiles/ seqcli/ $rid.Dockerfile - t " $image -ci:$version -$arch " .
34+ & docker buildx build -- platform " $ ( $arch .platform ) " - f dockerfiles/ seqcli/ $rid.Dockerfile - t " $image -ci:$version -$ ( $ arch.rid ) " .
3235 if ($LASTEXITCODE -ne 0 ) { exit 3 }
3336}
3437
@@ -41,7 +44,7 @@ function Publish-DockerImage($arch)
4144 if ($LASTEXITCODE ) { exit 3 }
4245 }
4346
44- & docker push " $image -ci:$version -$arch "
47+ & docker push " $image -ci:$version -$ ( $ arch.rid ) "
4548 if ($LASTEXITCODE -ne 0 ) { exit 3 }
4649
4750 $ErrorActionPreference = " Stop"
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: 2022.1.{build}
22skip_tags : true
33image :
44- Visual Studio 2022
5- - Ubuntu1804
5+ - Ubuntu2004
66environment :
77 DOCKER_TOKEN :
88 secure : QKr2YEuliXdFKe3jN7w97w==
4747-
4848 matrix :
4949 only :
50- - image : Ubuntu1804
50+ - image : Ubuntu2004
5151
5252 install :
5353 - pwsh : ./setup.sh
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ $publishImages = @()
1717
1818foreach ($arch in $archs ) {
1919 $ciImage = " $image -ci:$version -$arch "
20- $publishImage = " $image :$version -$arch " ;
20+ $publishImage = " $ ( $ image) :$version -$arch " ;
2121
2222 docker pull $ciImage
2323 if ($LASTEXITCODE ) { exit 1 }
@@ -31,14 +31,14 @@ foreach ($arch in $archs) {
3131 $publishImages += $publishImage
3232}
3333
34- $publishManifest = " $image :$version "
34+ $publishManifest = " $ ( $ image) :$version "
3535
3636$pushTags = @ ($publishManifest )
3737
3838if ($isPre -eq $True ) {
39- $pushTags += " $image: preview "
39+ $pushTags += " $ ( $ image) :preview"
4040} else {
41- $pushTags += " $image :$major " , " $image :$major .$minor " , " $image: latest "
41+ $pushTags += " $ ( $ image) :$major " , " $ ( $ image) :$major .$minor " , " $ ( $ image) :latest"
4242}
4343
4444$choices = " &Yes" , " &No"
Original file line number Diff line number Diff line change @@ -13,3 +13,6 @@ curl https://dot.net/v1/dotnet-install.sh -sSfL --output dotnet-install.sh
1313chmod +x dotnet-install.sh
1414./dotnet-install.sh --install-dir $HOME /.dotnetcli --no-path --version $RequiredDotnetVersion
1515rm dotnet-install.sh
16+
17+ docker run --privileged --rm docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
18+ sudo service docker restart
You can’t perform that action at this time.
0 commit comments