fix cache image tag

This commit is contained in:
2024-03-17 14:32:05 +07:00
parent 4ad5f90e81
commit 8d2f97f62b

View File

@@ -43,8 +43,8 @@ jobs:
--platform=linux/amd64,linux/arm64 \ --platform=linux/amd64,linux/arm64 \
--build-arg BUILDKIT_INLINE_CACHE=1 \ --build-arg BUILDKIT_INLINE_CACHE=1 \
--build-arg COMPOSER_VERSION=${{ env.COMPOSER_VERSION }} \ --build-arg COMPOSER_VERSION=${{ env.COMPOSER_VERSION }} \
--cache-from="type=registry,ref=dannecron/php-for-dev:${{ matrix.php_version }}-cache,mode=max" \ --cache-from="type=registry,ref=dannecron/php-for-dev:${{ matrix.php_version }}.cache,mode=max" \
--cache-to="type=registry,dannecron/php-for-dev:${{ matrix.php_version }}-cache,mode=max" \ --cache-to="type=registry,dannecron/php-for-dev:${{ matrix.php_version }}.cache,mode=max" \
--tag=dannecron/php-for-dev:${{ matrix.php_version }} \ --tag=dannecron/php-for-dev:${{ matrix.php_version }} \
$(if test "${{ matrix.php_version }}" = "8.0"; then printf %s '--tag=dannecron/php-for-dev:latest'; fi) \ $(if test "${{ matrix.php_version }}" = "8.0"; then printf %s '--tag=dannecron/php-for-dev:latest'; fi) \
./v${{ matrix.php_version }} ./v${{ matrix.php_version }}