From 562df850e812d32fe9b412c07d18e8a04b7a953a Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sat, 5 Sep 2020 05:18:15 +0200 Subject: [PATCH] Use service container Signed-off-by: CrazyMax --- .github/workflows/ci.yml | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68de37d..793e83f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,11 +18,12 @@ jobs: matrix: buildx-version: - latest + services: + registry: + image: registry:2 + ports: + - 5000:5000 steps: - - - name: Run local registry - run: | - docker run -d -p 5000:5000 registry:2 - name: Checkout uses: actions/checkout@v2.3.1 @@ -74,11 +75,12 @@ jobs: buildx-version: - "" - latest + services: + registry: + image: registry:2 + ports: + - 5000:5000 steps: - - - name: Run local registry - run: | - docker run -d -p 5000:5000 registry:2 - name: Checkout uses: actions/checkout@v2.3.1 @@ -131,11 +133,12 @@ jobs: dockerfile: - multi - multi-sudo + services: + registry: + image: registry:2 + ports: + - 5000:5000 steps: - - - name: Run local registry - run: | - docker run -d -p 5000:5000 registry:2 - name: Checkout uses: actions/checkout@v2.3.1 @@ -180,11 +183,12 @@ jobs: github-cache: runs-on: ubuntu-latest + services: + registry: + image: registry:2 + ports: + - 5000:5000 steps: - - - name: Run local registry - run: | - docker run -d -p 5000:5000 registry:2 - name: Checkout uses: actions/checkout@v2.3.1