Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
dbpolito committed May 15, 2024
1 parent 9863465 commit 59e3b11
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ jobs:
build:
runs-on: ubuntu-latest

services:
registry:
image: registry:2
ports:
- 5000:5000

strategy:
matrix:
version: ['8.0-swoole', '8.1-swoole', '8.2-swoole', '8.3-swoole']
Expand All @@ -22,22 +28,24 @@ jobs:

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host # needed to push to local registry

- name: Build and export to Docker
uses: docker/build-push-action@v5
with:
context: ${{ matrix.version }}${{ matrix.type }}
load: true
tags: kooldev/php:${{ matrix.version }}${{ matrix.type }}
push: true
tags: localhost:5000/kooldev/php:${{ matrix.version }}${{ matrix.type }}

- name: Build and export to Docker (nginx)
uses: docker/build-push-action@v5
with:
context: ${{ matrix.version }}-nginx${{ matrix.type }}
load: true
tags: kooldev/php:${{ matrix.version }}-nginx${{ matrix.type }}
push: true
tags: localhost:5000/kooldev/php:${{ matrix.version }}-nginx${{ matrix.type }}
build-contexts: |
${{ matrix.version }}${{ matrix.type }}=docker-image://${{ matrix.version }}${{ matrix.type }}
${{ matrix.version }}${{ matrix.type }}=docker-image://localhost:5000/${{ matrix.version }}${{ matrix.type }}
- name: Tests
run: |
Expand Down

0 comments on commit 59e3b11

Please sign in to comment.