Skip to content

Commit a153e69

Browse files
committed
update pipelines
1 parent da98c3e commit a153e69

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/build-windows-2025-base-docker.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ on:
1010
type: string
1111
description: What working directory should be passed to the script
1212
default: "containers/windows-servercore2025"
13+
build_context:
14+
type: string
15+
description: "The context of the build"
16+
default: "github_workspace"
1317
docker_image_name:
1418
type: string
1519
description: 'Docker Image name?'
16-
default: "terraform-azure-azdo-pipeline-templates/windows-servercore2025"
20+
default: "terraform-azure-azdo-pipeline-templates/ubuntu"
1721
enable_debug_mode:
1822
type: boolean
1923
description: 'Whether debug mode should be enable for within the script'
@@ -47,9 +51,18 @@ jobs:
4751
id: run-script
4852
shell: pwsh
4953
run: |
50-
$workingDirectory = Join-Path -Path "${{ github.workspace }}" -ChildPath "${{ inputs.working_directory }}"
54+
if ("${{ inputs.working_directory }}" -eq "github_workspace")
55+
{
56+
$workingDirectory = "${{ github.workspace }}"
57+
}
58+
else
59+
{
60+
$workingDirectory = "${{ inputs.working_directory }}"
61+
}
62+
5163
.\Run-Docker.ps1 `
5264
-WorkingDirectory $workingDirectory `
65+
-BuildContext ${{ github.workspace }} `
5366
-PushDockerImage ${{ inputs.push_docker_image }} `
5467
-DebugMode ${{ inputs.enable_debug_mode }} `
5568
-DockerImageName ${{ inputs.docker_image_name }} `

0 commit comments

Comments
 (0)