Back to Dagger

Oci Annotations

docs/current_docs/partials/cookbook/builds/_oci-annotations.mdx

0.20.71011 B
Original Source

Add OCI annotations to image

The following Dagger Function adds OpenContainer Initiative (OCI) annotations to an image.

<Tabs groupId="language" queryString="sdk"> <TabItem value="go" label="Go">
go
</TabItem> <TabItem value="python" label="Python">
python
</TabItem> <TabItem value="typescript" label="TypeScript">
typescript
</TabItem> </Tabs>

Example

Build and publish an image with OCI annotations:

<Tabs groupId="shell"> <TabItem value="System shell"> ```shell dagger -c build ``` </TabItem> <TabItem value="Dagger Shell"> ```shell title="First type 'dagger' for interactive mode." build ``` </TabItem> <TabItem value="Dagger CLI"> ```shell dagger call build ``` </TabItem> </Tabs>