From e02eac9f53ea2cec720c4bdbfb657b95aff72316 Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Tue, 1 Dec 2026 09:51:15 +1000 Subject: [PATCH] target docker pushes to seqcli rather than seqcli-ci --- build/Build.Docker.ps1 | 12 ++++++------ build/README.md | 8 +++----- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/build/Build.Docker.ps1 b/build/Build.Docker.ps1 index 8dca56a3..6dd1c897 100644 --- a/build/Build.Docker.ps1 +++ b/build/Build.Docker.ps1 @@ -1,4 +1,4 @@ -# Builds the `datalust/seqcli-ci` Docker images for linux/amd64 and linux/arm64, and, when +# Builds the `datalust/seqcli` Docker images for linux/amd64 and linux/arm64, and, when # DOCKER_TOKEN is set, pushes them along with a multi-arch manifest. # # In CI (see publish-docker in .github/workflows/publish.yml) this runs against the commit that the @@ -31,7 +31,7 @@ function Build-DockerImage($arch) & dotnet publish src/SeqCli/SeqCli.csproj -c Release -f $framework -r $rid --self-contained /p:VersionPrefix=$version /p:PublishSingleFile=true if($LASTEXITCODE -ne 0) { exit 2 } - & docker buildx build --platform "$($arch.platform)" -f dockerfiles/seqcli/$rid.Dockerfile -t "$image-ci:$version-$($arch.rid)" . + & docker buildx build --platform "$($arch.platform)" -f dockerfiles/seqcli/$rid.Dockerfile -t "$image:$version-$($arch.rid)" . if($LASTEXITCODE -ne 0) { exit 3 } } @@ -49,7 +49,7 @@ function Publish-DockerImage($arch) { $ErrorActionPreference = "SilentlyContinue" - & docker push "$image-ci:$version-$($arch.rid)" + & docker push "$image:$version-$($arch.rid)" if($LASTEXITCODE -ne 0) { exit 3 } $ErrorActionPreference = "Stop" @@ -59,14 +59,14 @@ function Publish-DockerManifest($archs) { $images = "" foreach ($arch in $archs) { - $images += "$image-ci:$version-$($arch.rid) " + $images += "$image:$version-$($arch.rid) " } # We use `invoke-expression` here so each tag is treated as a separate arg - invoke-expression "docker manifest create $image-ci:$version $images" + invoke-expression "docker manifest create $image:$version $images" if ($LASTEXITCODE) { exit 4 } - docker manifest push $image-ci:$version + docker manifest push $image:$version if ($LASTEXITCODE) { exit 4 } } diff --git a/build/README.md b/build/README.md index a31ed03a..1a16edd8 100644 --- a/build/README.md +++ b/build/README.md @@ -7,7 +7,7 @@ This directory holds the PowerShell scripts that build, test, package, and publi | `Build.Common.ps1` | (dot-sourced by the others) | Version number helpers | | `Build.Windows.ps1` | Windows | Release archives for every platform, the `seqcli` .NET tool package, generated docs | | `Build.Linux.ps1` | Linux | Nothing; runs the unit tests and the end-to-end tests against a Seq Docker container | -| `Build.Docker.ps1` | Linux | `datalust/seqcli-ci` Docker images for `linux/amd64` and `linux/arm64` | +| `Build.Docker.ps1` | Linux | `datalust/seqcli` Docker images for `linux/amd64` and `linux/arm64` | | `Build.Npm.ps1` | Linux (any OS locally) | `@datalust/seqcli` and `@datalust/seqcli-` npm packages | | `Build.Release.ps1` | Linux (any OS locally) | Draft GitHub release `v` with the CI artifacts attached | @@ -69,12 +69,10 @@ NuGet and npm use [trusted publishing](https://learn.microsoft.com/nuget/nuget-o |---|---|---|---|---| | Pull request | no | no | no | no | | Push to `dev` | no | no | no | no | -| Push to `main` | yes, `v` | release version | `datalust/seqcli-ci:` | release, dist-tag `latest` | -| Manual run, `publish` checked | yes (prerelease unless on `main`) | prerelease version unless on `main` | `datalust/seqcli-ci:` | prerelease (dist-tag `dev`) unless on `main` | +| Push to `main` | yes, `v` | release version | `datalust/seqcli:` | release, dist-tag `latest` | +| Manual run, `publish` checked | yes (prerelease unless on `main`) | prerelease version unless on `main` | `datalust/seqcli:` | prerelease (dist-tag `dev`) unless on `main` | | Manual run, `publish` unchecked | no (CI skips its jobs) | no | no | no | -Note that `Build.Docker.ps1` always pushes to the `datalust/seqcli-ci` repository (the image name with a `-ci` suffix), never directly to `datalust/seqcli`. Promoting an image to the public `datalust/seqcli` repository, and tagging it `latest`, is a separate step outside this repository. - To publish a release from `dev` (for example a preview build), run the workflow manually from the Actions tab with the **Publish a GitHub release and packages** input checked; this also publishes to NuGet, npm and Docker Hub. The release is marked as a prerelease because the branch is not `main`. ## Running the builds locally