From 2364dacd526ee2a9972264d6e34705809bd1d296 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 6 Jun 2025 22:02:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=B9=20GitHub=20?= =?UTF-8?q?=E5=AE=B9=E5=99=A8=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4ed12877..82eb1357 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,9 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ${{ secrets.DOCKER_USERNAME }}/moviepilot-v2 + images: | + ${{ secrets.DOCKER_USERNAME }}/moviepilot-v2 + ghcr.io/${{ github.repository }} tags: | type=raw,value=${{ env.app_version }} type=raw,value=latest @@ -42,6 +44,13 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Login GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build Image uses: docker/build-push-action@v5 with: