]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
CI: use local copies of Docker images
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Thu, 23 Mar 2023 16:25:38 +0000 (16:25 +0000)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Thu, 23 Mar 2023 17:28:01 +0000 (17:28 +0000)
.github/workflows/ci.yml

index 6f512854382c37d288285526854f9a48d121e3fc..a969affb990a4474c6c2ff1d2e907a4444591311 100644 (file)
@@ -27,6 +27,7 @@ jobs:
     outputs:
       should_skip: ${{ steps.skip_check.outputs.should_skip }}
       selfhosted: ${{ github.repository_owner == 'FreeRADIUS' && '1' || '0' }}
+      docker_prefix: ${{ github.repository_owner == 'FreeRADIUS' && 'docker.internal.networkradius.com/' || '' }}
     steps:
       - id: skip_check
         uses: fkirc/skip-duplicate-actions@master
@@ -80,7 +81,7 @@ jobs:
     # we need to run separate database containers to provide these.
     services:
       mariadb:
-        image: mariadb
+        image: ${{ needs.pre-ci.outputs.docker_prefix }}mariadb
         env:
           MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: yes
         ports:
@@ -88,7 +89,7 @@ jobs:
         options: --health-cmd="mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 10
 
       postgres:
-        image: postgres
+        image: ${{ needs.pre-ci.outputs.docker_prefix }}postgres
         env:
           POSTGRES_HOST_AUTH_METHOD: trust
         ports: