File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 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'
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 }} `
You can’t perform that action at this time.
0 commit comments