]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
CI: Run on GitHub unless it's the main FreeRADIUS repo
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Wed, 26 Oct 2022 17:21:45 +0000 (18:21 +0100)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Wed, 26 Oct 2022 17:25:44 +0000 (18:25 +0100)
.github/workflows/ci.yml

index 48943b9775d3c46c034926e118f1eb6270c45ee3..777263a0afe64b0d9d423c39672362db5d6ccfdc 100644 (file)
@@ -68,7 +68,11 @@ jobs:
         #  docker  - the docker image name, if containers are being used
         #  name    - used in the job name only
         os:
-          - { runs_on: "self-hosted",  code: "ubuntu2004", docker: "ubuntu:20.04", name: "self-ubuntu20", imageos: "ubuntu20" }
+          - runs_on: "${{ github.repository_owner == 'FreeRADIUS' && 'self-hosted' || 'ubuntu-20.04' }}"
+            code: "ubuntu2004"
+            docker: "ubuntu:20.04"
+            name: "${{ github.repository_owner == 'FreeRADIUS' && 'self' || 'gh' }}-ubuntu20"
+            imageos: "ubuntu20"
 
         env:
           - { CC: gcc,   BUILD_CFLAGS: "-DWITH_EVAL_DEBUG",         LIBS_OPTIONAL: no,  LIBS_ALT: no,  TEST_TYPE: fixtures, NAME: linux-gcc-lean      }