Skip to content

Commit

Permalink
Document how to update the CUE schemas
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Oct 21, 2023
1 parent 3c64dac commit ae6b258
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions schemas/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Timoni CUE Schemas

The Timoni's CUE schemas are included in the modules generated with `timoni mod init`.

## Vendoring

To update a module's schemas to the latest version,
run the following command from within the module root:

```shell
timoni artifact pull oci://ghcr.io/stefanprodan/timoni/schemas:latest \
--output cue.mod/pkg
```

To update the schemas and verify the signature with Cosign v2:

```shell
timoni artifact pull oci://ghcr.io/stefanprodan/timoni/schemas:latest \
--verify=cosign \
--certificate-identity-regexp="^https://github.com/stefanprodan/timoni.*$" \
--certificate-oidc-issuer=https://token.actions.githubusercontent.com \
--output cue.mod/pkg
```

0 comments on commit ae6b258

Please sign in to comment.