Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb7e931d7b | ||
|
|
79aa9fe8af | ||
|
|
d17d1cc90e | ||
|
|
09dac08a8b | ||
|
|
d7386399ab | ||
|
|
f89c13c1c1 | ||
|
|
72b747dd31 | ||
|
|
cd2593b6a1 | ||
|
|
769f7d1fce | ||
|
|
1f03cc90ac | ||
|
|
ec7ad719c0 | ||
|
|
620d11cc5f | ||
|
|
6f6b989ce3 |
@@ -0,0 +1,39 @@
|
||||
name: Publish Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
env:
|
||||
IMAGE_TAG: git.pretecno.com/pretecno/php-fpm-ext:${{ github.ref_name }}
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: set up docker buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- name: login to the docker hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: git.pretecno.com
|
||||
username: ${{ secrets.PRETECNOREGISTRY_USERNAME }}
|
||||
password: ${{ secrets.PRETECNOREGISTRY_PASSWORD }}
|
||||
- name: build and push docker image
|
||||
uses: docker/build-push-action@v4
|
||||
env:
|
||||
ACTIONS_RUNTIME_TOKEN: '' # https://gitea.com/gitea/act_runner/issues/119
|
||||
with:
|
||||
context: .
|
||||
no-cache: true
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: ${{ env.IMAGE_TAG }}
|
||||
- name: send telegram message
|
||||
uses: https://github.com/appleboy/telegram-action@master
|
||||
with:
|
||||
to: ${{ secrets.TELEGRAM_TO }}
|
||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||
message: |
|
||||
[Docker] ${{ env.IMAGE_TAG }} has just been released. 🎉
|
||||
+7
-1
@@ -1,9 +1,10 @@
|
||||
FROM php:7.4.23-fpm-buster
|
||||
FROM php:7.4.33-fpm-bullseye
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get -y --no-install-recommends install \
|
||||
libbz2-dev \
|
||||
libfreetype6-dev \
|
||||
libgmp-dev \
|
||||
libicu-dev \
|
||||
libjpeg-dev \
|
||||
libmagickwand-dev \
|
||||
@@ -11,6 +12,7 @@ RUN apt-get update && \
|
||||
libwebp-dev \
|
||||
libxml2-dev \
|
||||
libzip-dev \
|
||||
libzstd-dev \
|
||||
&& \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@@ -19,9 +21,11 @@ RUN printf "\n" | pecl install imagick
|
||||
RUN docker-php-ext-enable imagick
|
||||
|
||||
RUN docker-php-ext-install -j$(nproc) \
|
||||
bcmath \
|
||||
bz2 \
|
||||
exif \
|
||||
gd \
|
||||
gmp \
|
||||
intl \
|
||||
json \
|
||||
mysqli \
|
||||
@@ -29,3 +33,5 @@ RUN docker-php-ext-install -j$(nproc) \
|
||||
opcache \
|
||||
xml \
|
||||
zip
|
||||
|
||||
RUN printf \n | pecl install zstd && docker-php-ext-enable zstd
|
||||
Reference in New Issue
Block a user