From 69aa3f48ccc36135c873d359ab5d6dabb0f3dde1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E5=A4=A9=E9=9B=AA=E5=9C=B0?= Date: Thu, 20 Apr 2023 23:36:25 +0800 Subject: [PATCH] Fix : docker build when repo on organization. (#1973) * feat : support docker build * fix : ghcr build login when organization --------- Co-authored-by: kunson --- .github/workflows/docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index a9c4d5f8..4021b65f 100644 --- a/.github/workflows/docker.yml +++ b/.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