about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/container.yaml24
1 files changed, 12 insertions, 12 deletions
diff --git a/.github/workflows/container.yaml b/.github/workflows/container.yaml
index 534e737a..a6d31668 100644
--- a/.github/workflows/container.yaml
+++ b/.github/workflows/container.yaml
@@ -23,17 +23,17 @@ jobs:
         uses: docker/login-action@v2
         with:
           registry: ghcr.io
-          username: ${{ github.repository_owner }}
+          username: ${{ github.actor }}
           password: ${{ secrets.GITHUB_TOKEN }}
       - name: Build amd64
         uses: docker/build-push-action@v3
         with:
           context: .
           platforms: linux/amd64
-          tags: ghcr.io/${{ github.repository_owner }}/aflplusplus:amd64
+          tags: ghcr.io/${{ github.actor }}/aflplusplus:amd64
           push: true
-          cache-to: type=registry,ref=ghcr.io/${{ github.repository_owner }}/aflplusplus/cache:amd64,mode=max
-          cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/aflplusplus/cache:amd64
+          cache-to: type=registry,ref=ghcr.io/${{ github.actor }}/aflplusplus/cache:amd64,mode=max
+          cache-from: type=registry,ref=ghcr.io/${{ github.actor }}/aflplusplus/cache:amd64
 
   build-arm64:
     name: Build arm64 image
@@ -47,7 +47,7 @@ jobs:
         uses: docker/login-action@v2
         with:
           registry: ghcr.io
-          username: ${{ github.repository_owner }}
+          username: ${{ github.actor }}
           password: ${{ secrets.GITHUB_TOKEN }}
       - name: Set up QEMU
         uses: docker/setup-qemu-action@v2
@@ -58,17 +58,17 @@ jobs:
         with:
           context: .
           platforms: linux/arm64
-          tags: ghcr.io/${{ github.repository_owner }}/aflplusplus:arm64
+          tags: ghcr.io/${{ github.actor }}/aflplusplus:arm64
           push: true
-          cache-to: type=registry,ref=ghcr.io/${{ github.repository_owner }}/aflplusplus/cache:arm64,mode=max
-          cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/aflplusplus/cache:arm64
+          cache-to: type=registry,ref=ghcr.io/${{ github.actor }}/aflplusplus/cache:arm64,mode=max
+          cache-from: type=registry,ref=ghcr.io/${{ github.actor }}/aflplusplus/cache:arm64
 
   test-amd64:
     name: Test amd64 image
     runs-on: ubuntu-latest
     needs: build-amd64
     container:
-      image: ghcr.io/${{ github.repository_owner }}/aflplusplus:amd64
+      image: ghcr.io/${{ github.actor }}/aflplusplus:amd64
     steps:
       - name: Test amd64
         working-directory: /AFLplusplus
@@ -83,7 +83,7 @@ jobs:
     needs:
       - build-amd64
     container:
-      image: ghcr.io/${{ github.repository_owner }}/aflplusplus:amd64
+      image: ghcr.io/${{ github.actor }}/aflplusplus:amd64
     steps:
       - name: Fix for using external repo in container build # https://github.com/actions/checkout/issues/760
         run: git config --global --add safe.directory /__w/AFLplusplus/AFLplusplus
@@ -139,5 +139,5 @@ jobs:
           push: true
           tags: ${{ steps.push-tags.outputs.PUSH_TAGS }}
           cache-from: |  # TODO: From COPY line on is not cached
-            type=registry,ref=ghcr.io/${{ github.repository_owner }}/aflplusplus/cache:amd64
-            type=registry,ref=ghcr.io/${{ github.repository_owner }}/aflplusplus/cache:arm64
+            type=registry,ref=ghcr.io/${{ github.actor }}/aflplusplus/cache:amd64
+            type=registry,ref=ghcr.io/${{ github.actor }}/aflplusplus/cache:arm64