You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simple 'Hello world' example overriding the default ENTRYPOINT:
16
32
```
17
33
steps:
18
34
- name: Checkout
@@ -25,7 +41,7 @@ Very simple hello world example:
25
41
image: mcr.microsoft.com/windows/servercore:20H2
26
42
entrypoint: powershell.exe
27
43
run: >-
28
-
echo "Hello world";
44
+
Write-Output "Hello world";
29
45
./run-test-script.ps1;
30
46
```
31
47
@@ -44,25 +60,27 @@ and work path.
44
60
| parameter | description | required | default |
45
61
| - | - | - | - |
46
62
| image | Docker image. |`true`||
47
-
| run | Command to execute. |`true`||
63
+
| run | Command to execute. Must be single line for cmd.exe entry point (use &, && or \|\| operators to aggregate multiple commands). Can be multiline for entry points that support it, like powershell.exe. |`true`||
| mapping_path | Mapping path, i.e. path to where the workspace path is mapped in the docker container. Defaults to workspace_path. |`false`||
50
66
| work_path | Work path, i.e. path where the command in the docker container is executed. Defaults to workspace_path. |`false`||
51
67
| memory | Memory limit. See docker documentation on --memory. |`false`| 4GB |
52
68
| entrypoint | Overrides the default ENTRYPOINT in docker image. |`false`||
69
+
| entrypoint_args | Optional arguments for the ENTRYPOINT (default or overriden). For instance, `/S /C` for cmd.exe or `-NoLogo -NonInteractive -NoProfile` for powershell.exe. |`false`||
53
70
| env_names | Environment variable names passed to docker image as comma separated list, for example: NAME1, NAME2, NAME3 |`false`||
54
71
| extra_args | Extra arguments for docker run command. |`false`||
55
72
| pre-warm | Run a warming-up container (which might crash due to first time use failure) |`false`| true |
56
-
| pre-warm-cmd | Pre warm command to run inside the container |`false`|echo "warming up!" |
73
+
| pre-warm-cmd | Pre warm command to run inside the container |`false`|Write-Output "warming up!" |
57
74
| registry_authentication | Authenticate against registry server |`false`| false |
Copy file name to clipboardExpand all lines: action.yml
+36-19Lines changed: 36 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ inputs:
10
10
description: 'Docker image.'
11
11
required: true
12
12
run:
13
-
description: 'Command to execute.'
13
+
description: 'Command to execute. Must be single line for cmd.exe entry point (use &, && or \|\| operators to aggregate multiple commands). Can be multiline for entry points that support it, like powershell.exe.'
14
14
required: true
15
15
workspace_path:
16
16
description: 'Workspace path. Default is root workspace path.'
@@ -29,6 +29,10 @@ inputs:
29
29
description: "Overrides the default ENTRYPOINT in docker image."
30
30
required: false
31
31
default: ''
32
+
entrypoint_args:
33
+
description: "Optional arguments for the ENTRYPOINT (default or overriden). For instance, `/S /C` for cmd.exe or `-NoLogo -NonInteractive -NoProfile` for powershell.exe."
34
+
required: false
35
+
default: ''
32
36
env_names:
33
37
description: 'Environment variable names passed to docker image as comma separated list, for example: NAME1, NAME2, NAME3'
34
38
required: false
@@ -44,7 +48,7 @@ inputs:
44
48
pre-warm-cmd:
45
49
description: 'Pre warm command to run inside the container'
46
50
required: false
47
-
default: 'echo "warming up!"'
51
+
default: 'Write-Output "warming up!"'
48
52
registry_authentication:
49
53
description : 'Authenticate against registry server'
0 commit comments