From eb5a894f7d76daf381c63f3f54200354952d904c Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Fri, 31 Mar 2023 11:07:14 +0200 Subject: [PATCH] Switch to ghcr.io from dockerhub (#1360) * Switch to ghcr.io from dockerhub * Use action instead of manually invoking Docker --- .github/workflows/ci-docker.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci-docker.yml b/.github/workflows/ci-docker.yml index 2ceaacfd..833d9a7f 100644 --- a/.github/workflows/ci-docker.yml +++ b/.github/workflows/ci-docker.yml @@ -17,8 +17,8 @@ jobs: strategy: matrix: - tag: # Those are our dockerhub alire/gnat:tag machines - - centos-stream-fsf-latest # Test unsupported package manager + tag: # Those are our ghcr.io/alire-project/docker/gnat:tag machines + - centos-stream-fsf-latest # Test unsupported package manager - debian-stable # Test current stable Debian compiler - fedora-latest # Test current Fedora compiler - ubuntu-lts # Test current LTS Ubuntu compiler @@ -30,13 +30,12 @@ jobs: with: submodules: true - - name: Pull docker image - run: docker pull alire/gnat:${{ matrix.tag }} - - - name: Run test script - run: > - docker run -v${PWD}:/alire -w /alire - alire/gnat:${{ matrix.tag }} scripts/ci-github.sh + - name: Run test script (${{ matrix.tag }}) + uses: mosteo-actions/docker-run@v1 + with: + image: ghcr.io/alire-project/docker/gnat:${{matrix.tag}} + command: scripts/ci-github.sh + params: -v${PWD}:/alire -w /alire - name: Upload logs (if failed) if: failure() -- 2.39.5