Skip to content

Commit

Permalink
Update php-fpm and php8-fpm
Browse files Browse the repository at this point in the history
  • Loading branch information
naiba committed Apr 9, 2024
1 parent 82bd4ef commit 36055ae
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 6 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/php7-fpm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: php7-fpm

on:
push:
paths:
- "Dockerfile.php7-fpm"
- ".github/workflows/php-fpm.yml"

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: Log in to the GHCR
uses: docker/login-action@master
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: docker build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile.php7-fpm
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/php-fpm:7
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: php-fpm
name: php8-fpm

on:
push:
paths:
- "Dockerfile.php-fpm"
- "Dockerfile.php8-fpm"
- ".github/workflows/php-fpm.yml"

jobs:
Expand All @@ -29,8 +29,9 @@ jobs:
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile.php-fpm
file: ./Dockerfile.php8-fpm
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/php-fpm
ghcr.io/${{ github.repository_owner }}/php-fpm:8
File renamed without changes.
4 changes: 2 additions & 2 deletions Dockerfile.php8-fpm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM bitnami/php-fpm:8.1-prod
FROM bitnami/php-fpm:8.2
LABEL maintainer="奶爸 <hi@nai.ba>"

ENV PHP_VERSION=8.1
ENV PHP_VERSION=8.2

# Please bind crontab file to /etc/cron.d/crontab-config

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
**WARN!!** *amd64 & arm64 only*

- [beanstalkd](https://github.com/users/naiba/packages/container/package/beanstalkd) ![Build Status](https://github.com/naiba/Dockerfiles/workflows/beanstalkd/badge.svg) is a lightweight message queue commonly used in PHP.
- [PHP-FPM](https://github.com/users/naiba/packages/container/package/php-fpm) ![Build Status](https://github.com/naiba/Dockerfiles/workflows/php-fpm/badge.svg) is a PHP-FPM image with integrated ioncube.
- [PHP-FPM](https://github.com/users/naiba/packages/container/package/php-fpm) ![Build Status](https://github.com/naiba/Dockerfiles/workflows/php7-fpm/badge.svg) ![Build Status](https://github.com/naiba/Dockerfiles/workflows/php8-fpm/badge.svg) is a PHP-FPM image with integrated ioncube.
- [akshare](https://github.com/users/naiba/packages/container/package/akshare) ![Build Status](https://github.com/naiba/Dockerfiles/workflows/akshare/badge.svg) AKShare 镜像.

## PHP Docker all-in-one
Expand Down

0 comments on commit 36055ae

Please sign in to comment.