doc: Update README for upgrade and rebase commands

This commit is contained in:
Gerald Pinder 2024-01-21 18:43:00 -05:00
parent e2608b93ed
commit 0573cc1d9b

View file

@ -53,12 +53,26 @@ This will template out the file and build with `buildah` or `podman`.
#### Local Builds
If you want to test your changes, you can do so by using the `--rebase` argument. This will create an image as a `.tar.gz` file, store it in `/etc/blue-build`, an run `rpm-ostree rebase` on that newly built file.
##### Rebase
If you want to test your changes, you can do so by using the `rebase` command. This will create an image as a `.tar.gz` file, store it in `/etc/blue-build`, an run `rpm-ostree rebase` on that newly built file.
```bash
sudo bb build --rebase config/recipe.yml
sudo bb rebase config/recipe.yml
```
You can initiate an immediate restart by adding the `--reboot/-r` option.
##### Upgrade
When you've rebased onto a local image archive, you can update your image for your recipe by running:
```bash
sudo bb upgrade config/recipe.yml
```
The `--reboot` argument can be used with this command as well.
#### CI Builds
If you're running in Gitlab CI, it will automatically sign your image using Gitlab's own OIDC service. Here's an example of a `.gitlab-ci.yaml`: