Skip to content

Commit 8d14349

Browse files
authored
add documentation about local image build (#807)
Signed-off-by: Felix Breuer <f.breuer94@gmail.com>
1 parent ccc2680 commit 8d14349

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ Does not include:
2626
- [CSI Driver](docs/csi-driver.md)
2727
- Administration
2828
- [Deployment](docs/deployment.md)
29-
- Development
29+
- [Development](docs/development.md)
3030
- [Testing](docs/testing.md)
3131
- [Release Procedure](docs/release-procedure.md)

docs/development.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Development
2+
3+
## Build Container Images locally
4+
5+
Create a classic personal access token in GitHub. Set an expiration date and enable the `write:packages` scope.
6+
**Note:** Using a token generated by the `gh` cli is not sufficient.
7+
8+
Login to the `ghcr.io` registry. When asked for a password, paste the access token:
9+
10+
```bash
11+
ko login -u <your_username> --password-stdin ghcr.io
12+
```
13+
14+
Build image and push to the regsitry:
15+
16+
```bash
17+
make images
18+
```
19+
20+
The pushed image name and tag are logged to the console.

0 commit comments

Comments
 (0)