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
47
.forgejo/workflows/docker.yml
Normal file
47
.forgejo/workflows/docker.yml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
name: docker-build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
- "main"
|
||||
repository_dispatch:
|
||||
types: [build]
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions: ["8.1", "8.2", "8.3", "8.4"]
|
||||
variant: ["cli", "apache", "fpm"]
|
||||
base: ["bookworm", "bullseye"]
|
||||
|
||||
steps:
|
||||
- name: Checkout patch files
|
||||
uses: actions/checkout@v4
|
||||
- name: Checkout base dockerfiles
|
||||
run: |
|
||||
git clone --depth 1 https://github.com/docker-library/php
|
||||
- name: Set up Docker Buildx
|
||||
uses: https://github.com/docker/setup-buildx-action@v3
|
||||
- name: Login to DockerHub
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Patch dockerfiles
|
||||
run: |
|
||||
patch -N -p1 -d php < debug.patch
|
||||
jq '. | with_entries(select(.key == "${{ matrix.php-versions }}"))' php/versions.json > php/versions.json.new
|
||||
mv php/versions.json.new php/versions.json
|
||||
cd php; ./apply-templates.sh
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: https://github.com/docker/build-push-action@v5
|
||||
with:
|
||||
context: php/${{ matrix.php-versions }}/${{ matrix.base }}/${{ matrix.variant }}
|
||||
push: true
|
||||
tags: icewind1991/php-dbg:${{ matrix.php-versions }}-${{ matrix.variant }}-${{ matrix.base }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue