mirror of
https://github.com/docker/build-push-action.git
synced 2024-12-26 08:42:09 -05:00
Use service container
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
b0acf4a8d6
commit
562df850e8
1 changed files with 20 additions and 16 deletions
36
.github/workflows/ci.yml
vendored
36
.github/workflows/ci.yml
vendored
|
@ -18,11 +18,12 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
buildx-version:
|
buildx-version:
|
||||||
- latest
|
- latest
|
||||||
|
services:
|
||||||
|
registry:
|
||||||
|
image: registry:2
|
||||||
|
ports:
|
||||||
|
- 5000:5000
|
||||||
steps:
|
steps:
|
||||||
-
|
|
||||||
name: Run local registry
|
|
||||||
run: |
|
|
||||||
docker run -d -p 5000:5000 registry:2
|
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2.3.1
|
uses: actions/checkout@v2.3.1
|
||||||
|
@ -74,11 +75,12 @@ jobs:
|
||||||
buildx-version:
|
buildx-version:
|
||||||
- ""
|
- ""
|
||||||
- latest
|
- latest
|
||||||
|
services:
|
||||||
|
registry:
|
||||||
|
image: registry:2
|
||||||
|
ports:
|
||||||
|
- 5000:5000
|
||||||
steps:
|
steps:
|
||||||
-
|
|
||||||
name: Run local registry
|
|
||||||
run: |
|
|
||||||
docker run -d -p 5000:5000 registry:2
|
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2.3.1
|
uses: actions/checkout@v2.3.1
|
||||||
|
@ -131,11 +133,12 @@ jobs:
|
||||||
dockerfile:
|
dockerfile:
|
||||||
- multi
|
- multi
|
||||||
- multi-sudo
|
- multi-sudo
|
||||||
|
services:
|
||||||
|
registry:
|
||||||
|
image: registry:2
|
||||||
|
ports:
|
||||||
|
- 5000:5000
|
||||||
steps:
|
steps:
|
||||||
-
|
|
||||||
name: Run local registry
|
|
||||||
run: |
|
|
||||||
docker run -d -p 5000:5000 registry:2
|
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2.3.1
|
uses: actions/checkout@v2.3.1
|
||||||
|
@ -180,11 +183,12 @@ jobs:
|
||||||
|
|
||||||
github-cache:
|
github-cache:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
services:
|
||||||
|
registry:
|
||||||
|
image: registry:2
|
||||||
|
ports:
|
||||||
|
- 5000:5000
|
||||||
steps:
|
steps:
|
||||||
-
|
|
||||||
name: Run local registry
|
|
||||||
run: |
|
|
||||||
docker run -d -p 5000:5000 registry:2
|
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2.3.1
|
uses: actions/checkout@v2.3.1
|
||||||
|
|
Loading…
Reference in a new issue