Skip to content

Commit

Permalink
Added oci example add the provisioner parameter in docs (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-benoit authored Nov 4, 2024
2 parents 41bad42 + 371ca1a commit 3e422e1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
8 changes: 7 additions & 1 deletion content/en/docs/score implementation/score-compose/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ score-compose init --project score-compose2

#### `--provisioners` | `-p`

Loads additional provisoners from a remote url. May be specified multiple times. Supports http://host/file, https://host/file, git-ssh://git@host/repo.git/file, and git-https://host/repo.git/file formats.
Loads additional provisoners from a remote url. May be specified multiple times. Supports the following formats:

- `http://host/file`
- `https://host/file`
- `git-ssh://git@host/repo.git/file`
- `git-https://host/repo.git/file`
- `oci://[registry/][namespace/]repository[:tag|@digest][#file]`

```bash
score-compose init --provisioners https://raw.githubusercontent.com/user/repo/main/example.yaml
Expand Down
14 changes: 14 additions & 0 deletions content/en/docs/score implementation/score-k8s/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ Disables the generation of the sample Score file if you already have a Score fil
score-k8s init --no-sample
```

#### `--provisioners`

Loads additional provisoners from a remote url. May be specified multiple times. Supports the following formats:

- `http://host/file`
- `https://host/file`
- `git-ssh://git@host/repo.git/file`
- `git-https://host/repo.git/file`
- `oci://[registry/][namespace/]repository[:tag|@digest][#file]`

```bash
score-k8s init --provisioners https://raw.githubusercontent.com/user/repo/main/example.yaml
```

#### `--help` | `-h`

Displays help information for `init`, providing a short description of the command along with examples and compatible flags.
Expand Down

0 comments on commit 3e422e1

Please sign in to comment.