Skip to content

Commit 9664f31

Browse files
committed
Explain subst
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 1d95c29 commit 9664f31

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/reference/cicd/github-actions.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ jobs:
7272
--filter bcrypt
7373
```
7474
75+
The Publish functions step uses [environment substitution](/reference/yaml/#yaml-environment-variable-substitution) to set the owner and tag for the image.
76+
The tag for the image is published as "latest", along with an extra tag of the SHA from the commit from GitHub. The Owner portion of the image is set via a dynamic variable too, so that the repository can be forked and run under a different user account.
77+
78+
`ghcr.io/${OWNER:-alexellis}/bcrypt:${TAG:-latest}`
79+
80+
Any other text or variables can also be substituted in this way, making it easy to re-use the same workflow across multiple repositories, user accounts, or branches.
81+
7582
### Deploy functions from CI
7683

7784
To deploy functions, you can use the `faas-cli` in a `run` step.

0 commit comments

Comments
 (0)