From 9fa2fff83952dd9a6e852ef27cefe81502589f11 Mon Sep 17 00:00:00 2001 From: Henry Lee Date: Thu, 9 Nov 2023 11:48:14 +0900 Subject: [PATCH] chore(cicd): fix permission to publish to ghcr --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a171cea5a..c8f0fde62 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,6 +56,11 @@ jobs: - run: | echo "${{steps.read-metadata.outputs.metadata}}" - uses: docker/setup-buildx-action@v3 + - uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v5 with: context: ${{ matrix.target }}