update readme and help

This commit is contained in:
Александр Степченко 2024-08-29 12:28:58 +03:00
parent 13f9a20369
commit 05707d938c
2 changed files with 24 additions and 3 deletions

View File

@ -1,5 +1,22 @@
# image-forge
## Wrapper
### Examples
From the repository
```shell
image-build -b sisyphus -r registry.altlinux.org --prefix=k8s-sisyphus kube-apiserver kubernetes1.28
```
From a task
```shell
image-build -b sisyphus -r test.registry.altlinux.org -t 335250 --prefix=k8s-sisyphus kube-apiserver kubernetes1.28
```
## alt images
To build `alt` images, run:
```bash

View File

@ -9,15 +9,19 @@ $PROG - build an OCI image from a package
Usage: $PROG [options] <image name> <package name>
Options:
-b <branch> branch
-r <registry> registry
-t <task_id> task id
-b <branch> package repository branch
-r <registry> OCI destination registry
-t <task id> task id
--latest also tag this image as latest
--push push the image to the registry after build
--skip-build if push is true, then skip the build stage
--dry-run only print what would be done
--prefix <prefix> image name prefix
--help show this text and exit
Notes:
The image is only pushed to the destination registry
if the option --push is present.
EOF
)"