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:
32
16
```
33
17
steps:
34
18
- name: Checkout
@@ -41,7 +25,7 @@ Simple 'Hello world' example overriding the default ENTRYPOINT:
41
25
image: mcr.microsoft.com/windows/servercore:20H2
42
26
entrypoint: powershell.exe
43
27
run: >-
44
-
Write-Output "Hello world";
28
+
echo "Hello world";
45
29
./run-test-script.ps1;
46
30
```
47
31
@@ -60,17 +44,16 @@ and work path.
60
44
| parameter | description | required | default |
61
45
| - | - | - | - |
62
46
| image | Docker image. |`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`||
66
50
| work_path | Work path, i.e. path where the command in the docker container is executed. Defaults to workspace_path. |`false`||
67
51
| memory | Memory limit. See docker documentation on --memory. |`false`| 4GB |
68
52
| 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`||
70
53
| env_names | Environment variable names passed to docker image as comma separated list, for example: NAME1, NAME2, NAME3 |`false`||
71
54
| extra_args | Extra arguments for docker run command. |`false`||
72
55
| pre-warm | Run a warming-up container (which might crash due to first time use failure) |`false`| true |
73
-
| pre-warm-cmd | Pre warm command to run inside the container |`false`|Write-Output "warming up!" |
56
+
| pre-warm-cmd | Pre warm command to run inside the container |`false`|echo "warming up!" |
74
57
| registry_authentication | Authenticate against registry server |`false`| false |
Copy file name to clipboardExpand all lines: action.yml
+19-36Lines changed: 19 additions & 36 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. 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.'
13
+
description: 'Command to execute.'
14
14
required: true
15
15
workspace_path:
16
16
description: 'Workspace path. Default is root workspace path.'
@@ -29,10 +29,6 @@ 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: ''
36
32
env_names:
37
33
description: 'Environment variable names passed to docker image as comma separated list, for example: NAME1, NAME2, NAME3'
38
34
required: false
@@ -48,7 +44,7 @@ inputs:
48
44
pre-warm-cmd:
49
45
description: 'Pre warm command to run inside the container'
50
46
required: false
51
-
default: 'Write-Output "warming up!"'
47
+
default: 'echo "warming up!"'
52
48
registry_authentication:
53
49
description : 'Authenticate against registry server'
0 commit comments