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