瀏覽代碼

Fix : docker build when repo on organization. (#1973)

* feat : support docker build

* fix : ghcr build login when organization

---------

Co-authored-by: kunson <[email protected]>
冰天雪地 2 年之前
父節點
當前提交
69aa3f48cc
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      .github/workflows/docker.yml

+ 2 - 2
.github/workflows/docker.yml

@@ -16,7 +16,7 @@ jobs:
         id: meta
         uses: docker/metadata-action@v4
         with:
-          images: ghcr.io/${{ github.actor }}/xray-core
+          images: ghcr.io/${{ github.repository_owner }}/xray-core
           flavor: latest=true
           tags: |
             type=ref,event=branch
@@ -26,7 +26,7 @@ jobs:
         uses: docker/login-action@v2
         with:
           registry: ghcr.io
-          username: ${{ github.actor }}
+          username: ${{ github.repository_owner }}
           password: ${{ secrets.GITHUB_TOKEN }}
       - # Add support for more platforms with QEMU (optional)
         # https://github.com/docker/setup-qemu-action