Skip to content

Commit 945c211

Browse files
committed
Reintroduced the 'folded block scalars' that produce a much cleaner output of the invoked docker commands in the logs.
1 parent c80cfd0 commit 945c211

1 file changed

Lines changed: 22 additions & 20 deletions

File tree

action.yml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -87,33 +87,35 @@ runs:
8787
docker login ${{ inputs.registry_repository }} -u ${{ inputs.registry_username }} -p ${{ inputs.registry_token }}
8888
- name: Pre-warm
8989
if: inputs.pre-warm == 'true'
90-
run: |
91-
docker run `
92-
${{ steps.settings.outputs.extra_args }} `
93-
--rm `
94-
--memory=${{ inputs.memory }} `
95-
-v ${{ steps.settings.outputs.workspace_path }}:${{ steps.settings.outputs.mapping_path }} `
96-
-w ${{ steps.settings.outputs.work_path }} `
97-
${{ inputs.image }} `
98-
${{ inputs.entrypoint_args }} `
90+
run: >-
91+
docker run
92+
${{ steps.settings.outputs.extra_args }}
93+
--rm
94+
--memory=${{ inputs.memory }}
95+
-v ${{ steps.settings.outputs.workspace_path }}:${{ steps.settings.outputs.mapping_path }}
96+
-w ${{ steps.settings.outputs.work_path }}
97+
${{ inputs.image }}
98+
${{ inputs.entrypoint_args }}
9999
${{ inputs.pre-warm-cmd }}
100+
100101
exit 0
101102
shell: powershell -NoLogo -NonInteractive -NoProfile -Command ". '{0}'"
102103
- name: Run
103-
run: |
104+
run: >-
104105
$runnerPathSource = Split-Path -Path "${env:RUNNER_TEMP}" -Parent;
106+
105107
$runnerPathTarget = $runnerPathSource.replace('D:', 'C:');
106108
107-
docker run `
108-
${{ steps.settings.outputs.default_environment_variables }} `
109-
${{ steps.settings.outputs.extra_args }} `
110-
--rm `
111-
--memory=${{ inputs.memory }} `
112-
-v ${runnerPathSource}:${runnerPathTarget} `
113-
-v ${{ steps.settings.outputs.workspace_path }}:${{ steps.settings.outputs.mapping_path }} `
114-
-w ${{ steps.settings.outputs.work_path }} `
115-
${{ inputs.image }} `
116-
${{ inputs.entrypoint_args }} `
109+
docker run
110+
${{ steps.settings.outputs.default_environment_variables }}
111+
${{ steps.settings.outputs.extra_args }}
112+
--rm
113+
--memory=${{ inputs.memory }}
114+
-v ${runnerPathSource}:${runnerPathTarget}
115+
-v ${{ steps.settings.outputs.workspace_path }}:${{ steps.settings.outputs.mapping_path }}
116+
-w ${{ steps.settings.outputs.work_path }}
117+
${{ inputs.image }}
118+
${{ inputs.entrypoint_args }}
117119
${{ inputs.run }}
118120
shell: powershell -NoLogo -NonInteractive -NoProfile -Command ". '{0}'"
119121
- name: docker_logout

0 commit comments

Comments
 (0)