mirror of
https://codeberg.org/icewind/php-dbg.git
synced 2026-06-03 17:24:09 +02:00
ci updates
This commit is contained in:
parent
0168297ff0
commit
fc653c1021
2 changed files with 17 additions and 16 deletions
|
|
@ -3,10 +3,10 @@ name: docker-build
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- "master"
|
||||||
- 'main'
|
- "main"
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [ build ]
|
types: [build]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
|
|
@ -15,22 +15,20 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
php-versions: ['8.1', '8.2', '8.3', '8.4']
|
php-versions: ["8.1", "8.2", "8.3", "8.4"]
|
||||||
variant: ['cli', 'apache', 'fpm']
|
variant: ["cli", "apache", "fpm"]
|
||||||
base: ['bookworm', 'bullseye']
|
base: ["bookworm", "bullseye"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout patch files
|
- name: Checkout patch files
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Checkout base dockerfiles
|
- name: Checkout base dockerfiles
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
git clone --depth 1 https://github.com/docker-library/php
|
||||||
path: php
|
|
||||||
repository: docker-library/php
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: https://github.com/docker/setup-buildx-action@v3
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v3
|
uses: https://github.com/docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
@ -42,7 +40,7 @@ jobs:
|
||||||
cd php; ./apply-templates.sh
|
cd php; ./apply-templates.sh
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
id: docker_build
|
id: docker_build
|
||||||
uses: docker/build-push-action@v5
|
uses: https://github.com/docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: php/${{ matrix.php-versions }}/${{ matrix.base }}/${{ matrix.variant }}
|
context: php/${{ matrix.php-versions }}/${{ matrix.base }}/${{ matrix.variant }}
|
||||||
push: true
|
push: true
|
||||||
9
build.sh
9
build.sh
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [ ! -d php ]; then
|
if [ ! -d php ]; then
|
||||||
git clone https://github.com/docker-library/php
|
git clone https://github.com/docker-library/php
|
||||||
|
|
@ -6,9 +6,12 @@ fi
|
||||||
|
|
||||||
patch -N -p1 -d php < debug.patch
|
patch -N -p1 -d php < debug.patch
|
||||||
|
|
||||||
versions=("8.1" "8.2" "8.3")
|
versions=("8.4")
|
||||||
|
|
||||||
cd php; DOCKER_PHP_ENABLE_DEBUG=1 ./apply-templates.sh
|
(
|
||||||
|
cd php
|
||||||
|
DOCKER_PHP_ENABLE_DEBUG=1 ./apply-templates.sh
|
||||||
|
)
|
||||||
|
|
||||||
for version in "${versions[@]}"; do
|
for version in "${versions[@]}"; do
|
||||||
docker build -t icewind1991/php-debug:$version-fpm -f php/$version/bullseye/fpm/Dockerfile php/$version/bullseye/fpm
|
docker build -t icewind1991/php-debug:$version-fpm -f php/$version/bullseye/fpm/Dockerfile php/$version/bullseye/fpm
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue