mirror of
https://github.com/Dannecron/php-for-dev.git
synced 2025-12-26 00:22:36 +03:00
change creating custom driver with set up buildx action
This commit is contained in:
26
.github/workflows/continuous-integration.yml
vendored
26
.github/workflows/continuous-integration.yml
vendored
@@ -15,7 +15,8 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php_version: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
|
# todo rollback changes
|
||||||
|
php_version: ['8.0', '8.3']
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -23,14 +24,11 @@ jobs:
|
|||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
- name: Set up custom docker builder
|
- name: Set up Docker Buildx
|
||||||
run: |
|
uses: docker/setup-buildx-action@v3
|
||||||
docker buildx create --name multiarch-builder
|
|
||||||
docker buildx use multiarch-builder
|
|
||||||
docker buildx inspect --bootstrap
|
|
||||||
|
|
||||||
- name: Login to docker hub
|
- name: Login to docker hub
|
||||||
uses: actions-hub/docker/login@master
|
uses: docker/login-action@v3
|
||||||
env:
|
env:
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
@@ -43,12 +41,12 @@ jobs:
|
|||||||
- name: Build the Docker images ${{ matrix.php_version }}
|
- name: Build the Docker images ${{ matrix.php_version }}
|
||||||
run: |
|
run: |
|
||||||
docker buildx build --cache-from=dannecron/php-for-dev:${{ matrix.php_version }} \
|
docker buildx build --cache-from=dannecron/php-for-dev:${{ matrix.php_version }} \
|
||||||
--push \
|
--push \
|
||||||
--platform=linux/amd64,linux/arm64 \
|
--platform=linux/amd64,linux/arm64 \
|
||||||
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
--build-arg COMPOSER_VERSION=${{ env.COMPOSER_VERSION }} \
|
||||||
--build-arg COMPOSER_VERSION=${{ env.COMPOSER_VERSION }} \
|
--tag=dannecron/php-for-dev:${{ matrix.php_version }} \
|
||||||
--tag=dannecron/php-for-dev:${{ matrix.php_version }} \
|
$( (( "${{ matrix.php_version }}" -eq '8.0' )) && printf %s '--tag=dannecron/php-for-dev:latest') \
|
||||||
$( (( "${{ matrix.php_version }}" -eq '8.0' )) && printf %s '--tag=dannecron/php-for-dev:latest') \
|
./v${{ matrix.php_version }}
|
||||||
./v${{ matrix.php_version }}
|
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user