mirror of
https://github.com/chialab/docker-php.git
synced 2026-08-24 02:24:16 -05:00
chore: add workflow steps to build, test and push XHProf images
This commit is contained in:
@@ -50,6 +50,16 @@ jobs:
|
||||
tags: chialab/php-dev:${{ matrix.version }}${{ matrix.flavor }}
|
||||
load: true
|
||||
|
||||
- name: Build xhprof image for testing
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
cache-to: type=inline
|
||||
context: ./xhprof
|
||||
build-args: |
|
||||
BASE_IMAGE=${{ matrix.version }}${{ matrix.flavor }}
|
||||
tags: chialab/php-xhprof:${{ matrix.version }}${{ matrix.flavor }}
|
||||
load: true
|
||||
|
||||
- name: Test images
|
||||
env:
|
||||
VERSION: ${{ matrix.version }}${{ matrix.flavor }}
|
||||
@@ -88,3 +98,15 @@ jobs:
|
||||
BASE_IMAGE=${{ matrix.version }}${{ matrix.flavor }}
|
||||
tags: chialab/php-dev:${{ matrix.version }}${{ matrix.flavor }}
|
||||
push: true
|
||||
|
||||
- name: Build xhprof image and push to registry
|
||||
if: "github.event_name != 'pull_request'"
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
cache-to: type=inline
|
||||
context: ./xhprof
|
||||
build-args: |
|
||||
BASE_IMAGE=${{ matrix.version }}${{ matrix.flavor }}
|
||||
tags: chialab/php-xhprof:${{ matrix.version }}${{ matrix.flavor }}
|
||||
push: true
|
||||
|
||||
Reference in New Issue
Block a user