From dfabc521182c4635f5a82ba10b6acc5fc43dc5de Mon Sep 17 00:00:00 2001 From: Alastair Pitts Date: Mon, 18 Aug 2025 11:01:16 +1000 Subject: [PATCH 1/3] Also include .NET 8 runtime deps --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 220d417..9f7351b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,6 +29,7 @@ RUN tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell RUN chmod +x /opt/microsoft/powershell/pwsh FROM mcr.microsoft.com/dotnet/runtime-deps:6.0 +FROM mcr.microsoft.com/dotnet/runtime-deps:8.0 RUN apt update && apt install -y jq=1.6-2.1 curl From ae42a9d99312952d12948c10f9ead961c67d079f Mon Sep 17 00:00:00 2001 From: Alastair Pitts Date: Mon, 18 Aug 2025 11:03:24 +1000 Subject: [PATCH 2/3] Update workflow --- .github/workflows/build-and-publish-container-image.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build-and-publish-container-image.yml b/.github/workflows/build-and-publish-container-image.yml index 66c6f5e..8ca51d5 100644 --- a/.github/workflows/build-and-publish-container-image.yml +++ b/.github/workflows/build-and-publish-container-image.yml @@ -4,11 +4,15 @@ on: pull_request: paths: - 'versions.json' + - 'Dockerfile' + - '.github/workflows/*' push: branches: - main paths: - 'versions.json' + - 'Dockerfile' + - '.github/workflows/*' env: ArtifactoryImagePath: "${{ secrets.ARTIFACTORY_DOCKER_REPO_HOSTNAME }}/octopusdeploy/kubernetes-agent-tools-base" From 56023eebe5598c8d0b177974be71b61afa67e460 Mon Sep 17 00:00:00 2001 From: Alastair Pitts Date: Mon, 18 Aug 2025 11:04:08 +1000 Subject: [PATCH 3/3] Update to run only on specific workflow changed --- .github/workflows/build-and-publish-container-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-publish-container-image.yml b/.github/workflows/build-and-publish-container-image.yml index 8ca51d5..9578424 100644 --- a/.github/workflows/build-and-publish-container-image.yml +++ b/.github/workflows/build-and-publish-container-image.yml @@ -5,14 +5,14 @@ on: paths: - 'versions.json' - 'Dockerfile' - - '.github/workflows/*' + - '.github/workflows/build-and-publish-container-image.yml' push: branches: - main paths: - 'versions.json' - 'Dockerfile' - - '.github/workflows/*' + - '.github/workflows/build-and-publish-container-image.yml' env: ArtifactoryImagePath: "${{ secrets.ARTIFACTORY_DOCKER_REPO_HOSTNAME }}/octopusdeploy/kubernetes-agent-tools-base"