File tree Expand file tree Collapse file tree 3 files changed +107
-111
lines changed Expand file tree Collapse file tree 3 files changed +107
-111
lines changed Original file line number Diff line number Diff line change 27
27
- name : Build locally
28
28
run : |
29
29
PHP_VERSION="${{ matrix.php_version }}"
30
- docker buildx bake --load \
31
- --set "*.platform=$(uname -p) " \
30
+ docker buildx bake --pull -- load \
31
+ --set "*.platform=linux/amd64 " \
32
32
php${PHP_VERSION//.}-${{ matrix.variant }}
33
33
docker images --filter=reference=thecodingmachine/php
34
34
- name : Login to DockerHub
43
43
if : ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
44
44
run : |
45
45
PHP_VERSION="${{ matrix.php_version }}"
46
- PHP_PATCH_VERSION=`docker run --rm thecodingmachine/php:${PHP_VERSION}-v4-slim-${BRANCH_VARIANT} php -v | head -n1 | grep -P '\d+\.\d+\.\d+' -o | head -n1`
47
- TAG=${PHP_PATCH_VERSION} docker buildx bake --push \
46
+ PHP_PATCH_VERSION=`docker run --rm thecodingmachine/php:${PHP_VERSION}-v4-slim-${{ matrix.variant }} php -v | head -n1 | grep -P '\d+\.\d+\.\d+' -o | head -n1`
47
+ PHP_MINOR="${PHP_PATCH_VERSION}" docker buildx bake --pull \
48
+ --set "*.platform=linux/amd64,linux/arm64" \
49
+ --set=*.output=type=registry \
48
50
php${PHP_VERSION//.}-${{ matrix.variant }}
You can’t perform that action at this time.
0 commit comments