feature: use cron build
This commit is contained in:
parent
e465f7a7b8
commit
5316eef34a
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -1,10 +1,10 @@
|
|||||||
name: Build image
|
name: Build image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 1 * * 0'
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
tags: [ 'v*.*.*' ]
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
env:
|
env:
|
||||||
PHP_EXTENSION_INSTALL_VERSION: 'latest'
|
PHP_EXTENSION_INSTALL_VERSION: 'latest'
|
||||||
COMPOSER_VERSION: 'latest'
|
COMPOSER_VERSION: 'latest'
|
||||||
|
19
README.md
19
README.md
@ -1,6 +1,21 @@
|
|||||||
# webman docker
|
# 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 \
|
-it \
|
||||||
--privileged -u root \
|
--privileged -u root \
|
||||||
--entrypoint /bin/sh \
|
--entrypoint /bin/sh \
|
||||||
kriss/docker-webman
|
krisss/docker-webman:7.4-cli-alpine
|
||||||
```
|
```
|
||||||
|
|
||||||
创建项目
|
创建项目
|
||||||
|
Loading…
Reference in New Issue
Block a user