Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/builds/images/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,20 @@ to ensure compatibility.
### 1. Build and Push

```bash
# From repository root - use buildx with OCI mediatypes
# From a clean repository checkout - use buildx with OCI mediatypes
VERSION=$(git rev-parse HEAD)
docker buildx build \
--platform linux/amd64 \
--output type=image,oci-mediatypes=true,push=true \
--tag onkernel/builder-generic:latest \
--tag "onkernel/builder-generic:$VERSION" \
-f lib/builds/images/generic/Dockerfile \
.
```

Keep the version tag for rollback when moving `latest` to a newer build. To roll back,
set `BUILDER_IMAGE` to the retained version tag instead of `latest`.

### 2. Import into Hypeman

```bash
Expand Down
Loading