ci: fix ghcr.io container pushing
authorPetr Štetiar <ynezz@true.cz>
Sun, 14 May 2023 18:40:08 +0000 (20:40 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 15 May 2023 06:05:39 +0000 (08:05 +0200)
Attempt to fix following:

 #11 ERROR: denied: permission_denied: The requested installation does not exist.
 ------
  > pushing ghcr.io/ynezz/buildworker-v3.5.0:master with docker:
 ------
 ERROR: denied: permission_denied: The requested installation does not exist.
 Error: buildx failed with: ERROR: denied: permission_denied: The requested installation does not exist.

References: https://github.com/openwrt/buildbot/actions/runs/4971701948/jobs/8899889081#step:9:191
Signed-off-by: Petr Štetiar <ynezz@true.cz>
.github/workflows/build-push.yml

index 61a1c1b1a7adc35566e90c545256ce4e3ea12452..d87a47d844bf54fe86a041100c3cf61a2282cb42 100644 (file)
@@ -67,7 +67,7 @@ jobs:
         id: meta
         uses: docker/metadata-action@v4
         with:
-          images: name=ghcr.io/${{ github.actor }}/build${{ matrix.container_flavor }}-v${{ env.BUILDBOT_VERSION }}
+          images: name=ghcr.io/${{ github.repository }}/build${{ matrix.container_flavor }}-v${{ env.BUILDBOT_VERSION }}
 
       - name: Login to GitHub Container Registry
         uses: docker/login-action@v2