chore: add workflow steps to build, test and push XHProf images

This commit is contained in:
le0m
2021-11-03 17:51:48 +01:00
parent 92009b2d41
commit c3f4be5ad9
+22
View File
@@ -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