From 915e07bc40d0236b2223b7380ebc60353c67d115 Mon Sep 17 00:00:00 2001 From: Cappy Ishihara Date: Thu, 18 Jul 2024 18:00:26 +0700 Subject: [PATCH] fix: docker push --- .github/workflows/build-docker.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 44c759c..7102b0e 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -39,7 +39,8 @@ env: katsu https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-40.noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-40.noarch.rpm - + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} on: push: branches: [ "um40" ] @@ -146,6 +147,9 @@ jobs: buildah manifest push --all --format v2s2 $MANIFEST docker://$MANIFEST:$RELEASE docker-layer: + permissions: + contents: read + packages: write runs-on: ubuntu-latest needs: docker-push strategy: @@ -163,6 +167,12 @@ jobs: uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Log into registry ${{ env.REGISTRY }} + uses: docker/login-action@v2.1.0 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build images uses: docker/build-push-action@v6