Skip to content

Commit a46d096

Browse files
authored
Merge pull request #77 from gstackio/fix-task-documentation
Un-confuse documentation about the $PARAM syntax used for tasks params
2 parents 213f3a0 + 0780908 commit a46d096

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ image_resource:
4949

5050
Next, any of the following optional parameters may be specified:
5151

52+
_(As a convention in the list below, all task parameters are specified with a
53+
leading `$`, in order to remind their environment variable nature, just like
54+
shell variables that one would use with the `$VAR` syntax. When specifying
55+
those in the `params:` YAML dictionary of a task definition though, the
56+
leading `$` is irrelevant, as readers will notice in the examples below.)_
57+
5258
* `$CONTEXT` (default `.`): the path to the directory to provide as the context
5359
for the build.
5460

@@ -101,7 +107,7 @@ Next, any of the following optional parameters may be specified:
101107
name. For example, `IMAGE_ARG_base_image=ubuntu/image.tar` will set
102108
`base_image` to a local image reference for using `ubuntu/image.tar`.
103109
104-
* `IMAGE_PLATFORM`: Specify the target platform to build the image for. For
110+
* `$IMAGE_PLATFORM`: Specify the target platform to build the image for. For
105111
example `IMAGE_PLATFORM=linux/arm64` will build the image for the Linux OS
106112
and `arm64` architecture. By default, images will be built for the current
107113
worker's platform that the task is running on.

0 commit comments

Comments
 (0)