Skip to content

Commit

Permalink
More updates to tutorials/get_familiar_with_Kosli.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Dec 11, 2023
1 parent 470ede5 commit 0661915
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docs.kosli.com/content/tutorials/get_familiar_with_Kosli.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ no reports have been received.
## Step 5: Attest an artifact to Kosli
Typically, you would build an artifact in your CI system.
The quickstart-docker repository contains a `docker-compose.yml` file which uses an [nginx](https://nginx.org/) docker image
which you will be using as your artifact in this tutorial instead.
The quickstart-docker repository contains a `docker-compose.yml` file which uses an [nginx](https://nginx.org/)
docker image which you will be using as your artifact in this tutorial instead.
Pull the docker image - the Kosli CLI needs the artifact to be locally present to
generate a "fingerprint" to identify it:
Expand All @@ -165,11 +165,13 @@ REPOSITORY TAG IMAGE ID CREATED SIZE
nginx 1.21 8f05d7383593 5 months ago 134MB
```
Now you can report the artifact to Kosli using the `kosli attest artifact` command.
This tutorial uses a dummy value for the `--build-url` flag, in a real installation
this would be a defaulted link to a build service (e.g. Github Actions).
Note that the value of the `--name` flag is `nginx` which is the (only) artifact
name defined in the `kosli.yml` file.
Now report the artifact to Kosli using the `kosli attest artifact` command.
Note:
- The `--name` flag has the value `nginx` which is the (only) artifact
name defined in the file `kosli.yml`.
- The `--build-url` and `--commit-url` flags have dummy values;
in a real installation these would get default values (e.g. from Github Actions).
```shell {.command}
GIT_COMMIT=$(git rev-parse HEAD)
Expand Down

0 comments on commit 0661915

Please sign in to comment.