From 02222c936840226baa836f9b84182aac79466a6c Mon Sep 17 00:00:00 2001 From: gongqianjun Date: Thu, 4 Jan 2024 18:11:13 +0800 Subject: [PATCH 1/2] feat: update Key field in Channel model --- model/channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/channel.go b/model/channel.go index 7e7b42e6..085e3ca4 100644 --- a/model/channel.go +++ b/model/channel.go @@ -8,7 +8,7 @@ import ( type Channel struct { Id int `json:"id"` Type int `json:"type" gorm:"default:0"` - Key string `json:"key" gorm:"not null;index"` + Key string `json:"key" gorm:"type:varchar(1500);not null;index"` Status int `json:"status" gorm:"default:1"` Name string `json:"name" gorm:"index"` Weight *uint `json:"weight" gorm:"default:0"` From ce968caf1112ad038ea1e152e518acd5893abc05 Mon Sep 17 00:00:00 2001 From: monlor Date: Sat, 27 Jan 2024 23:01:04 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=F0=9F=90=9B=20=E5=8E=BB=E6=8E=89doc?= =?UTF-8?q?kerhub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-image-arm64.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docker-image-arm64.yml b/.github/workflows/docker-image-arm64.yml index d6449eb8..e66b6587 100644 --- a/.github/workflows/docker-image-arm64.yml +++ b/.github/workflows/docker-image-arm64.yml @@ -31,12 +31,6 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - - name: Log in to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Log in to the Container registry uses: docker/login-action@v2 with: @@ -48,9 +42,7 @@ jobs: id: meta uses: docker/metadata-action@v4 with: - images: | - justsong/one-api - ghcr.io/${{ github.repository }} + images: ghcr.io/${{ github.repository }} - name: Build and push Docker images uses: docker/build-push-action@v3 @@ -59,4 +51,4 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }}