Skip to content

Commit

Permalink
Info about overriding useBuildCache
Browse files Browse the repository at this point in the history
  • Loading branch information
satr committed Aug 26, 2024
1 parent 0372e2f commit 57efdac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions public-site/docs/docs/topic-radix-cli/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ An option `job` of commands `create`, `get logs` is replaced with `pipeline-job`
```shell
rx create pipeline-job build-deploy -a your-app-name --branch main
```
Optional argument `--use-build-cache=true|false` can override the radixconfig option [useBuildCache](/radix-config/index.md#usebuildcache)
#### Promote pipeline job
* Promote active deployment in one environment to another:
```shell
Expand Down
2 changes: 2 additions & 0 deletions public-site/docs/radix-config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ Example: instead of `FROM alpine` use `FROM docker.io/alpine`, as this `alpine`
### `useBuildCache`
`useBuildCache` - (optional, defaults to `true`) pushes all layers to cache, and uses it in future builds when possible. Requires `useBuildKit` to be enabled. Internally we set `--cache-to`, `--cache-from` and `--layers` in Buildah. Read more at [Buildahs Documentation](https://github.com/containers/buildah/blob/main/docs/buildah-build.1.md)

This option can be overridden in the [Radix CLI command](/docs/topic-radix-cli/index.md#build-and-deploy-pipeline-job) `rx create pipeline-job build-deploy` with an argument `--use-build-cache=true|false`

:::tip
Make sure you never store secrets or confidential information in any intermitent layer, multistage image, or in your final container image.
:::
Expand Down

0 comments on commit 57efdac

Please sign in to comment.