Skip to content

Commit ee5b788

Browse files
build: change container registry from dockerhub to ghcr.io
1 parent 7fb38be commit ee5b788

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.github/workflows/publish-to-dockerhub.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Prepare
1515
id: prepare
1616
run: |
17-
DOCKER_IMAGE=kubeoperator/webkubectl
17+
DOCKER_IMAGE=ghcr.io/kubeoperator/webkubectl
1818
DOCKER_PLATFORMS=linux/amd64,linux/arm64
1919
TAG_NAME=${GITHUB_REF#refs/*/}
2020
DOCKER_IMAGE_TAGS="--tag ${DOCKER_IMAGE}:${TAG_NAME} --tag ${DOCKER_IMAGE}:latest"
@@ -31,11 +31,12 @@ jobs:
3131
- name: Docker Buildx (build)
3232
run: |
3333
docker buildx build --output "type=image,push=false" ${{ steps.prepare.outputs.buildx_args }}
34-
- name: Login to DockerHub
35-
uses: docker/login-action@v1
34+
- name: Login to GitHub Container Registry
35+
uses: docker/login-action@v2
3636
with:
37-
username: ${{ secrets.DOCKERHUB_USERNAME }}
38-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
37+
registry: ghcr.io
38+
username: ${{ github.actor }}
39+
password: ${{ secrets.GH_TOKEN }}
3940
- name: Docker Buildx (push)
4041
run: |
4142
docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }}

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
[![Downloads](https://img.shields.io/docker/pulls/kubeoperator/webkubectl?label=downloads)](https://hub.docker.com/r/kubeoperator/webkubectl)
66
[![Go Report Card](https://goreportcard.com/badge/github.com/kubeoperator/webkubectl)](https://goreportcard.com/report/github.com/kubeoperator/webkubectl)
7-
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/kubeoperator/webkubectl/build-and-push-to-dockerhub)](https://github.com/KubeOperator/webkubectl/actions/workflows/publish-to-dockerhub.yml)
87
![License](https://img.shields.io/github/license/KubeOperator/webkubectl)
98
![Dockerized](https://img.shields.io/badge/dockerized-yes-brightgreen)
109
![Version](https://img.shields.io/github/v/release/kubeoperator/webkubectl)
@@ -45,7 +44,7 @@ When session terminated, the provisioned namespace and storage are deleted.
4544
# Installation
4645

4746
```sh
48-
$ docker run --name="webkubectl" -p 8080:8080 -d --privileged kubeoperator/webkubectl
47+
$ docker run --name="webkubectl" -p 8080:8080 -d --privileged ghcr.io/kubeoperator/webkubectl
4948
```
5049

5150
Advanced environment variables

README.zh_CN.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
[![Downloads](https://img.shields.io/docker/pulls/kubeoperator/webkubectl?label=downloads)](https://hub.docker.com/r/kubeoperator/webkubectl)
66
[![Go Report Card](https://goreportcard.com/badge/github.com/kubeoperator/webkubectl)](https://goreportcard.com/report/github.com/kubeoperator/webkubectl)
7-
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/kubeoperator/webkubectl/build-and-push-to-dockerhub)](https://github.com/KubeOperator/webkubectl/actions/workflows/publish-to-dockerhub.yml)
87
![License](https://img.shields.io/github/license/KubeOperator/webkubectl)
98
![Dockerized](https://img.shields.io/badge/dockerized-yes-brightgreen)
109
![Version](https://img.shields.io/github/v/release/kubeoperator/webkubectl)
@@ -46,7 +45,7 @@ Web Kubectl 使用[webkubectl/gotty](https://github.com/KubeOperator/webkubectl/
4645
# 安装
4746

4847
```sh
49-
$ docker run --name="webkubectl" -p 8080:8080 -d --privileged kubeoperator/webkubectl
48+
$ docker run --name="webkubectl" -p 8080:8080 -d --privileged ghcr.io/kubeoperator/webkubectl
5049
```
5150

5251
高级环境变量

0 commit comments

Comments
 (0)