feat(构建迁移): 迁移构建脚本

This commit is contained in:
2025-11-27 11:36:22 +08:00
parent 0c9f78d523
commit fceeb47604
3 changed files with 38 additions and 31 deletions

View File

@@ -1,28 +0,0 @@
---
kind: pipeline
name: default
node:
region: cn
steps:
- name: docker-cn
pull: if-not-exists
image: plugins/docker
settings:
repo: ccr.ccs.tencentyun.com/xiaoqidun/pfenv
registry: ccr.ccs.tencentyun.com
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: Dockerfile
- name: docker-hk
pull: if-not-exists
image: plugins/docker
settings:
repo: hkccr.ccs.tencentyun.com/xiaoqidun/pfenv
registry: hkccr.ccs.tencentyun.com
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: Dockerfile

View File

@@ -0,0 +1,35 @@
on: [push, workflow_dispatch]
jobs:
build:
runs-on: cn
steps:
- name: checkout
uses: actions/checkout@v6
- name: docker setup
uses: docker/setup-buildx-action@v3
with:
driver-opts: |
"env.http_proxy=${{ env.HTTP_PROXY }}"
"env.https_proxy=${{ env.HTTPS_PROXY }}"
"env.no_proxy=${{ env.NO_PROXY }}"
- name: docker login
uses: docker/login-action@v3
with:
registry: ccr.ccs.tencentyun.com
username: ${{ secrets.docker_username }}
password: ${{ secrets.docker_password }}
- name: docker login
uses: docker/login-action@v3
with:
registry: hkccr.ccs.tencentyun.com
username: ${{ secrets.docker_username }}
password: ${{ secrets.docker_password }}
- name: docker build
uses: docker/build-push-action@v6
with:
context: .
push: true
provenance: false
tags: |
ccr.ccs.tencentyun.com/xiaoqidun/pfenv:latest
hkccr.ccs.tencentyun.com/xiaoqidun/pfenv:latest

View File

@@ -1,14 +1,14 @@
# 基础镜像
FROM php:8.3.21-fpm
FROM php:8.3.28-fpm
# 作者信息
LABEL authors="xiaoqidun"
# 安装扩展
RUN pecl install redis-6.2.0 \
RUN pecl install redis-6.3.0 \
&& docker-php-ext-enable redis
RUN pecl install xdebug-3.4.3 \
RUN pecl install xdebug-3.4.7 \
&& docker-php-ext-enable xdebug
RUN pecl install runkit7-4.0.0a6 \