Skip to content

Commit 2e4b0d0

Browse files
committed
update README for GitHub packages support
1 parent 6a8cf28 commit 2e4b0d0

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

kubernetes/README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,24 @@
33
Building image
44

55
```
6-
docker build -t tomoyk/nickns:v1.0 .
6+
docker build -t cdsl-research/nickns:v1.0.x .
7+
docker tag cdsl-research/nickns:v1.0.x docker.pkg.github.com/cdsl-research/nickns/nickns:v1.0.x
78
```
89

9-
Push to dockerhub
10+
Generate GitHub Token
11+
12+
[create personal access token, save as TOKEN](https://github.com/settings/tokens)
13+
14+
Setup remote registry
15+
16+
```
17+
cat ./TOKEN | docker login docker.pkg.github.com -u <YOUR_USERNAME> --password-stdin
18+
```
19+
20+
Push to registry
1021

1122
```
12-
docker push tomoyk/nickns:v1.0
23+
docker push docker.pkg.github.com/cdsl-research/nickns/nickns:v1.0.x
1324
```
1425

1526
Create namespace

0 commit comments

Comments
 (0)