Skip to content

Commit

Permalink
dynamically set repo owner
Browse files Browse the repository at this point in the history
  • Loading branch information
antondlr committed Mar 26, 2024
1 parent 938ea40 commit 6def1aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ concurrency:
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
# Enable self-hosted runners for the sigp repo only.
SELF_HOSTED_RUNNERS: ${{ github.repository == 'antondlr/lighthouse' }}
# Enable self-hosted runners for your own repo only.
SELF_HOSTED_RUNNERS: ${{ github.repository == 'github.repository_owner/lighthouse' }}

jobs:
# Extract the VERSION which is either `latest` or `vX.Y.Z`, and the VERSION_SUFFIX
Expand Down Expand Up @@ -54,8 +54,8 @@ jobs:
VERSION_SUFFIX: ${{ env.VERSION_SUFFIX }}
build-docker-single-arch:
name: build-docker-${{ matrix.binary }}-${{ matrix.cpu_arch }}${{ matrix.features.version_suffix }}
# Use self-hosted runners only on the sigp repo.
runs-on: ${{ github.repository == 'antondlr/lighthouse' && fromJson('["self-hosted", "linux", "release"]') || 'ubuntu-22.04' }}
# Use self-hosted runners only on your own repo.
runs-on: ${{ github.repository == 'github.repository_owner/lighthouse' && fromJson('["self-hosted", "linux", "X64", "large"]') || 'ubuntu-22.04' }}
strategy:
matrix:
binary: [lighthouse,
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
build-docker-multiarch:
name: build-docker-multiarch${{ matrix.modernity }}
name: build-docker-${{ matrix.binary }}-multiarch
runs-on: ubuntu-22.04
strategy:
matrix:
Expand Down

0 comments on commit 6def1aa

Please sign in to comment.