Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/buld-win-2025.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Build Windows 2025 Docker Image

on:
push:
branches: [ "prepare-windows-2025-image" ]

jobs:

build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v5
- name: Build the Docker image
run: docker build windows.ltsc2025 --file windows.ltsc2025/Dockerfile --tag worker-tools-windows-ltsc2025:${{ github.run_number }}
7 changes: 7 additions & 0 deletions docker-compose.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,10 @@ services:
- "./windows.ltsc2022:c:\\app"
working_dir: "c:\\app"
entrypoint: ["pwsh", "-file", "scripts/run-tests.ps1"]
windows.ltsc2025:
build: windows.ltsc2025
image: docker.packages.octopushq.com/octopusdeploy/worker-tools:${BUILD_NUMBER?err}-windows.ltsc2025
volumes:
- "./windows.ltsc2025:c:\\app"
working_dir: "c:\\app"
entrypoint: ["pwsh", "-file", "scripts/run-tests.ps1"]
11 changes: 11 additions & 0 deletions windows.ltsc2025/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# escape=`

FROM mcr.microsoft.com/windows/servercore:ltsc2025
SHELL ["powershell", "-Command"]


# Install Choco
RUN $ProgressPreference = 'SilentlyContinue'; `
Set-ExecutionPolicy Bypass -Scope Process -Force; `
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; `
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
13 changes: 13 additions & 0 deletions windows.ltsc2025/scripts/run-tests.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Write-Output "##teamcity[blockOpened name='Pester tests']"

try {
Install-Module -Name "Pester" -MinimumVersion "5.5.0" -Force

Import-Module -Name "Pester"

Write-Ouput "Nothing to see here, it's all fake, just to test the build process"

} catch {
exit 1
}
Write-Output "##teamcity[blockClosed name='Pester tests']"
Loading