From 6636660edd68bcbdbc1664a0dc4bb1ab1070bd1d Mon Sep 17 00:00:00 2001 From: Pysio <71202163+pysio2007@users.noreply.github.com> Date: Sun, 6 Oct 2024 06:22:41 +0800 Subject: [PATCH] fix: bulid-docker.yml --- .github/workflows/bulid-docker.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bulid-docker.yml b/.github/workflows/bulid-docker.yml index 3f03bf4..3244d76 100644 --- a/.github/workflows/bulid-docker.yml +++ b/.github/workflows/bulid-docker.yml @@ -10,8 +10,8 @@ on: - v* env: - REGISTRY: ghcr.io - IMAGE: pysio2007/pysioblog + REGISTRY: docker.io + IMAGE: pysio/pysioblog jobs: build-and-push: @@ -51,14 +51,13 @@ jobs: echo "Flags: ${{ steps.buildx.outputs.flags }}" echo "Platforms: ${{ steps.buildx.outputs.platforms }}" - # 登录到 GitHub Packages 容器仓库 - # 注意 secrets.GITHUB_TOKEN 不需要手动添加,直接就可以用 - - name: Log in to the Container registry + # 登录到 Docker Hub 容器仓库 + - name: Log in to Docker Hub uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} # 根据输入自动生成 tag 和 label 等数据,说明见下 - name: Extract metadata for Docker @@ -82,4 +81,4 @@ jobs: - name: Inspect image run: | docker buildx imagetools inspect \ - ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ steps.meta.outputs.version }} \ No newline at end of file + ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ steps.meta.outputs.version }}