mirror of
https://github.com/chialab/docker-php.git
synced 2026-08-24 02:24:16 -05:00
chore: use new base image
This commit is contained in:
@@ -38,16 +38,6 @@ jobs:
|
||||
with:
|
||||
driver-opts: network=host
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_PULL_USER_3 }}
|
||||
password: ${{ secrets.DOCKER_PULL_PASS_3 }}
|
||||
|
||||
- name: Pull base image
|
||||
run: |
|
||||
docker pull php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@@ -65,12 +55,12 @@ jobs:
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
platforms: linux/amd64
|
||||
cache-from: type=registry,ref=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=php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
BASE_IMAGE=ghcr.io/chialab/php-mirror:${{ matrix.version }}${{ matrix.flavor }}
|
||||
tags: |
|
||||
chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
|
||||
@@ -38,16 +38,6 @@ jobs:
|
||||
with:
|
||||
driver-opts: network=host
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_PULL_USER_2 }}
|
||||
password: ${{ secrets.DOCKER_PULL_PASS_2 }}
|
||||
|
||||
- name: Pull base image
|
||||
run: |
|
||||
docker pull php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@@ -65,12 +55,12 @@ jobs:
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
cache-from: type=registry,ref=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=php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
BASE_IMAGE=ghcr.io/chialab/php-mirror:${{ matrix.version }}${{ matrix.flavor }}
|
||||
tags: |
|
||||
chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
|
||||
@@ -33,16 +33,6 @@ jobs:
|
||||
with:
|
||||
driver-opts: network=host
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_PULL_USER_1 }}
|
||||
password: ${{ secrets.DOCKER_PULL_PASS_1 }}
|
||||
|
||||
- name: Pull base image
|
||||
run: |
|
||||
docker pull php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@@ -60,12 +50,12 @@ jobs:
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
cache-from: type=registry,ref=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=php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
BASE_IMAGE=ghcr.io/chialab/php-mirror:${{ matrix.version }}${{ matrix.flavor }}
|
||||
tags: |
|
||||
chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
ghcr.io/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
|
||||
@@ -28,17 +28,17 @@ jobs:
|
||||
with:
|
||||
driver-opts: network=host
|
||||
|
||||
- name: Login to DockerHub
|
||||
- name: Login to DockerHub (pull)
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_PULL_USER_3 }}
|
||||
password: ${{ secrets.DOCKER_PULL_PASS_3 }}
|
||||
username: ${{ secrets.DOCKER_PULL_USER_1 }}
|
||||
password: ${{ secrets.DOCKER_PULL_PASS_1 }}
|
||||
|
||||
- name: Pull base image
|
||||
run: |
|
||||
docker pull debian:stretch-slim
|
||||
|
||||
- name: Login to DockerHub
|
||||
- name: Login to DockerHub (push)
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
@@ -55,7 +55,7 @@ jobs:
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
platforms: linux/amd64
|
||||
cache-from: type=registry,ref=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) }}
|
||||
|
||||
@@ -37,21 +37,22 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to DockerHub
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_PULL_USER_3 }}
|
||||
password: ${{ secrets.DOCKER_PULL_PASS_3 }}
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build image for testing
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
cache-from: type=registry,ref=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=php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
BASE_IMAGE=ghcr.io/chialab/php-mirror:${{ matrix.version }}${{ matrix.flavor }}
|
||||
tags: localhost:5000/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
push: true
|
||||
|
||||
|
||||
@@ -37,21 +37,22 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to DockerHub
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_PULL_USER_2 }}
|
||||
password: ${{ secrets.DOCKER_PULL_PASS_2 }}
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build image for testing
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
cache-from: type=registry,ref=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=php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
BASE_IMAGE=ghcr.io/chialab/php-mirror:${{ matrix.version }}${{ matrix.flavor }}
|
||||
tags: localhost:5000/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
push: true
|
||||
|
||||
|
||||
@@ -32,21 +32,22 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to DockerHub
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_PULL_USER_1 }}
|
||||
password: ${{ secrets.DOCKER_PULL_PASS_1 }}
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build image for testing
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
cache-from: type=registry,ref=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=php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
BASE_IMAGE=ghcr.io/chialab/php-mirror:${{ matrix.version }}${{ matrix.flavor }}
|
||||
tags: localhost:5000/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
|
||||
push: true
|
||||
|
||||
|
||||
@@ -31,13 +31,13 @@ jobs:
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_PULL_USER_3 }}
|
||||
password: ${{ secrets.DOCKER_PULL_PASS_3 }}
|
||||
username: ${{ secrets.DOCKER_PULL_USER_1 }}
|
||||
password: ${{ secrets.DOCKER_PULL_PASS_1 }}
|
||||
|
||||
- name: Build image for testing
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
cache-from: type=registry,ref=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) }}
|
||||
|
||||
Reference in New Issue
Block a user