Skip to content

Commit

Permalink
correct example
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Sep 11, 2024
1 parent e03f0b5 commit 2f80335
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/usage/outputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ steps:

- name: test
image: my-organization/${image}:latest
pull: on_start
commands:
- go test ./...

```

This is not a valid pipeline configuration. However, being able to dynamically update environment variables for substitution or for plugin parameters can be an important part of a CI build.
This is not a valid pipeline configuration because `image` will not persist from the first step to the second. However, being able to dynamically update environment variables for substitution or for plugin parameters can be an important part of a CI build.

This is where `outputs` can improve your pipeline configurations.

Expand All @@ -50,6 +51,7 @@ steps:

- name: test
image: my-organization/${image}:latest
pull: on_start
commands:
- go test ./...
```
Expand Down

0 comments on commit 2f80335

Please sign in to comment.