Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Info about overriding useBuildCache #375

Merged
merged 6 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
16 changes: 8 additions & 8 deletions public-site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions public-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
"prism-react-renderer": "^2.3.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sass": "^1.77.7"
"sass": "^1.77.8"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.4.0",
"@docusaurus/tsconfig": "^3.4.0",
"@docusaurus/types": "^3.4.0",
"typescript": "~5.5.2"
"typescript": "~5.5.4"
},
"browserslist": {
"production": [
Expand Down