mirror of
https://github.com/chialab/docker-php.git
synced 2026-08-24 02:24:16 -05:00
fix: base image, disable cache for a clean build
This commit is contained in:
@@ -59,12 +59,12 @@ jobs:
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
platforms: linux/amd64
|
||||
cache-from: type=registry,ref=ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
# cache-from: type=registry,ref=ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
cache-to: type=inline
|
||||
context: .
|
||||
file: ${{ ((contains(matrix.flavor, 'alpine') || matrix.version == 'alpine') && 'Dockerfile.alpine') || 'Dockerfile' }}
|
||||
build-args: |
|
||||
BASE_IMAGE=chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
BASE_IMAGE=php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
tags: |
|
||||
chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
|
||||
@@ -59,12 +59,12 @@ jobs:
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
cache-from: type=registry,ref=ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
# cache-from: type=registry,ref=ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
cache-to: type=inline
|
||||
context: .
|
||||
file: ${{ ((contains(matrix.flavor, 'alpine') || matrix.version == 'alpine') && 'Dockerfile.alpine') || 'Dockerfile' }}
|
||||
build-args: |
|
||||
BASE_IMAGE=chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
BASE_IMAGE=php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
tags: |
|
||||
chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
|
||||
@@ -54,12 +54,12 @@ jobs:
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
cache-from: type=registry,ref=ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
# cache-from: type=registry,ref=ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
cache-to: type=inline
|
||||
context: .
|
||||
file: ${{ ((contains(matrix.flavor, 'alpine') || matrix.version == 'alpine') && 'Dockerfile.alpine') || 'Dockerfile' }}
|
||||
build-args: |
|
||||
BASE_IMAGE=chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
BASE_IMAGE=php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
tags: |
|
||||
chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
|
||||
@@ -55,7 +55,7 @@ jobs:
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
platforms: linux/amd64
|
||||
cache-from: type=registry,ref=ghcr.io/chialab/php-compat:${{ matrix.version }}${{ matrix.flavor }}
|
||||
# cache-from: type=registry,ref=ghcr.io/chialab/php-compat:${{ matrix.version }}${{ matrix.flavor }}
|
||||
cache-to: type=inline
|
||||
context: ./compat
|
||||
file: ${{ format('compat/{0}.{1}{2}', 'Dockerfile', matrix.version, matrix.flavor) }}
|
||||
|
||||
@@ -53,12 +53,12 @@ jobs:
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
cache-from: type=registry,ref=ghcr.io/chialab/php:${{ matrix.version }}
|
||||
# cache-from: type=registry,ref=ghcr.io/chialab/php:${{ matrix.version }}
|
||||
cache-to: type=inline
|
||||
context: .
|
||||
file: ${{ ((contains(matrix.flavor, 'alpine') || matrix.version == 'alpine') && 'Dockerfile.alpine') || 'Dockerfile' }}
|
||||
build-args: |
|
||||
BASE_IMAGE=chialab/php:${{ matrix.version }}
|
||||
BASE_IMAGE=php:${{ matrix.version }}
|
||||
tags: |
|
||||
chialab/php:${{ matrix.version }}
|
||||
ghcr.io/chialab/php:${{ matrix.version }}
|
||||
|
||||
@@ -41,12 +41,12 @@ jobs:
|
||||
- name: Build image for testing
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
cache-from: type=registry,ref=ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
# cache-from: type=registry,ref=ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
cache-to: type=inline
|
||||
context: .
|
||||
file: ${{ ((contains(matrix.flavor, 'alpine') || matrix.version == 'alpine') && 'Dockerfile.alpine') || 'Dockerfile' }}
|
||||
build-args: |
|
||||
BASE_IMAGE=chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
BASE_IMAGE=php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
tags: localhost:5000/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
push: true
|
||||
|
||||
|
||||
@@ -41,12 +41,12 @@ jobs:
|
||||
- name: Build image for testing
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
cache-from: type=registry,ref=ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
# cache-from: type=registry,ref=ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
cache-to: type=inline
|
||||
context: .
|
||||
file: ${{ ((contains(matrix.flavor, 'alpine') || matrix.version == 'alpine') && 'Dockerfile.alpine') || 'Dockerfile' }}
|
||||
build-args: |
|
||||
BASE_IMAGE=chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
BASE_IMAGE=php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
tags: localhost:5000/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
push: true
|
||||
|
||||
|
||||
@@ -36,12 +36,12 @@ jobs:
|
||||
- name: Build image for testing
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
cache-from: type=registry,ref=ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
# cache-from: type=registry,ref=ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
cache-to: type=inline
|
||||
context: .
|
||||
file: ${{ ((contains(matrix.flavor, 'alpine') || matrix.version == 'alpine') && 'Dockerfile.alpine') || 'Dockerfile' }}
|
||||
build-args: |
|
||||
BASE_IMAGE=chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
BASE_IMAGE=php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
tags: localhost:5000/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
push: true
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ jobs:
|
||||
- name: Build image for testing
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
cache-from: type=registry,ref=ghcr.io/chialab/php-compat:${{ matrix.version }}${{ matrix.flavor }}
|
||||
# cache-from: type=registry,ref=ghcr.io/chialab/php-compat:${{ matrix.version }}${{ matrix.flavor }}
|
||||
cache-to: type=inline
|
||||
context: ./compat
|
||||
file: ${{ format('compat/{0}.{1}{2}', 'Dockerfile', matrix.version, matrix.flavor) }}
|
||||
|
||||
@@ -35,12 +35,12 @@ jobs:
|
||||
- name: Build image for testing
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
cache-from: type=registry,ref=ghcr.io/chialab/php:${{ matrix.version }}
|
||||
# cache-from: type=registry,ref=ghcr.io/chialab/php:${{ matrix.version }}
|
||||
cache-to: type=inline
|
||||
context: .
|
||||
file: ${{ ((contains(matrix.flavor, 'alpine') || matrix.version == 'alpine') && 'Dockerfile.alpine') || 'Dockerfile' }}
|
||||
build-args: |
|
||||
BASE_IMAGE=chialab/php:${{ matrix.version }}
|
||||
BASE_IMAGE=php:${{ matrix.version }}
|
||||
tags: localhost:5000/chialab/php:${{ matrix.version }}
|
||||
push: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user