feature: use cron build

This commit is contained in:
kriss 2022-05-26 09:42:04 +08:00
parent e465f7a7b8
commit 5316eef34a
2 changed files with 21 additions and 6 deletions

View File

@ -1,10 +1,10 @@
name: Build image
on:
schedule:
- cron: '0 1 * * 0'
push:
branches: [ main ]
pull_request:
branches: [ main ]
tags: [ 'v*.*.*' ]
env:
PHP_EXTENSION_INSTALL_VERSION: 'latest'
COMPOSER_VERSION: 'latest'

View File

@ -1,6 +1,21 @@
# webman docker
# 当开发环境使用
[docker hub](https://hub.docker.com/r/krisss/docker-webman)
- krisss/docker-webman:7.4-cli-alpine
- krisss/docker-webman:8.0-cli-alpine
- krisss/docker-webman:8.1-cli-alpine
会通过 github actions 动态更新 php 的小版本,镜像 tag 名不变
## 镜像中的组件
- [php](https://hub.docker.com/_/php): extension 包含bcmath、event、gd、mysqli、pdo_mysql、opcache、pcntl、redis、sockets、zip
- [composer](https://getcomposer.org/)
- [install-php-extensions](https://github.com/mlocati/docker-php-extension-installer)
- [supervisor](http://supervisord.org/)
## 当开发环境使用
启动镜像
@ -11,7 +26,7 @@ docker run --rm --name webman \
-it \
--privileged -u root \
--entrypoint /bin/sh \
kriss/docker-webman
krisss/docker-webman:7.4-cli-alpine
```
创建项目