Skip to content

Commit

Permalink
Merge pull request #77 from gstackio/fix-task-documentation
Browse files Browse the repository at this point in the history
Un-confuse documentation about the $PARAM syntax used for tasks params
  • Loading branch information
clarafu authored Jan 4, 2022
2 parents 213f3a0 + 0780908 commit a46d096
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ image_resource:

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

_(As a convention in the list below, all task parameters are specified with a
leading `$`, in order to remind their environment variable nature, just like
shell variables that one would use with the `$VAR` syntax. When specifying
those in the `params:` YAML dictionary of a task definition though, the
leading `$` is irrelevant, as readers will notice in the examples below.)_

* `$CONTEXT` (default `.`): the path to the directory to provide as the context
for the build.

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

0 comments on commit a46d096

Please sign in to comment.