From: Matthew Newton Date: Tue, 21 Mar 2023 22:47:35 +0000 (+0000) Subject: CI: use local docker image for self-hosted runs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b3976cc24ffa5dd3caa3931945cd25193c707c6;p=thirdparty%2Ffreeradius-server.git CI: use local docker image for self-hosted runs --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f4e76abaab..2b2337884fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,7 @@ jobs: # Map a step output to a job output outputs: should_skip: ${{ steps.skip_check.outputs.should_skip }} + selfhosted: ${{ github.repository_owner == 'FreeRADIUS' && '1' || '0' }} steps: - id: skip_check uses: fkirc/skip-duplicate-actions@master @@ -68,10 +69,10 @@ jobs: # docker - the docker image name, if containers are being used # name - used in the job name only os: - - runs_on: "${{ github.repository_owner == 'FreeRADIUS' && 'self-hosted' || 'ubuntu-20.04' }}" + - runs_on: "${{ needs.pre-ci.outputs.selfhosted == '1' && 'self-hosted' || 'ubuntu-20.04' }}" + docker: "${{ needs.pre-ci.outputs.selfhosted == '1' && 'docker.internal.networkradius.com/self-hosted' || 'ubuntu:20.04' }}" + name: "${{ needs.pre-ci.outputs.selfhosted == '1' && 'self' || 'gh' }}-ubuntu20" code: "ubuntu2004" - docker: "ubuntu:20.04" - name: "${{ github.repository_owner == 'FreeRADIUS' && 'self' || 'gh' }}-ubuntu20" imageos: "ubuntu20" env: