aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorRuben ten Hove <git@rhtenhove.nl>2022-06-27 15:13:16 +0000
committerRuben ten Hove <git@rhtenhove.nl>2022-06-27 15:13:16 +0000
commit73db4fe9939482f4c2f38c24d903869bb0d4a7eb (patch)
tree15a267db41c9cd81ae40fae764642a0651a3b16d /.github
parent22c3b519fa92e02add77a0cf30600b5034d179d9 (diff)
downloadAFLplusplus-73db4fe9939482f4c2f38c24d903869bb0d4a7eb.tar.gz
use actor
Diffstat (limited to '.github')
-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