Compare commits

..

36 Commits
v2.3.0 ... main

Author SHA1 Message Date
a042ef8de6 测试群晖构建
Some checks failed
Build Docker Image And Push / Build PHP 8.0 (push) Failing after 33m31s
2024-03-19 15:42:10 +08:00
ac0b90a1c1 byd
Some checks failed
Build Docker Image And Push / Build PHP 8.0 (push) Has been cancelled
2024-03-15 15:45:13 +08:00
4a53f20dc3 吞吞吐吐
Some checks failed
Build Docker Image And Push / Build PHP 8.0 (push) Failing after 43s
2024-03-15 14:12:28 +08:00
20aaed1f1c 243
Some checks failed
Build Docker Image And Push / Build PHP 8.0 (push) Failing after 6m24s
2024-03-15 11:42:31 +08:00
6cfa6e80fb 88888
Some checks failed
Build Docker Image And Push / Build PHP 8.0 (push) Failing after 12s
2024-03-15 11:30:25 +08:00
95ffcdd3c8 89
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 9s
2024-03-15 11:18:37 +08:00
a56aca42f4 44
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 11s
2024-03-15 11:15:18 +08:00
fe24d4fad9 4234
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 8s
2024-03-15 11:09:33 +08:00
30d98896e7 2342
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 25s
2024-03-15 11:04:06 +08:00
226d70846b 345
Some checks are pending
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Has started running
2024-03-15 10:59:58 +08:00
2ecdef7675 2432
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 6s
2024-03-15 10:56:32 +08:00
452b356321 234
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 6s
2024-03-15 10:55:40 +08:00
feca5c9d3c 234
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 30s
2024-03-15 10:52:14 +08:00
25fe1f48c7 34
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 2m3s
2024-03-15 10:07:23 +08:00
b7d9a17121 32 2024-03-15 10:06:34 +08:00
e090cfad10 123
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 44s
2024-03-15 10:03:20 +08:00
8dddaafee3 test
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 44s
2024-03-15 09:44:25 +08:00
5d444fc763 test
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 40s
2024-03-15 09:29:24 +08:00
f287eeec5d 更新 .github/workflows/docker-image.yml
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 39s
Signed-off-by: heibai2006 <heibai2006@noreply.localhost>
2024-03-15 01:18:21 +00:00
7765d1cada 测试
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 1m23s
2024-03-14 17:29:38 +08:00
b4b4274811 测试
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 56s
2024-03-14 17:16:57 +08:00
c20d67b6a8 测试
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 1m18s
2024-03-14 17:10:17 +08:00
7fa62852c4 测试
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 2m18s
2024-03-14 16:59:25 +08:00
2e4fc781ce v0.07 2024-03-14 16:57:50 +08:00
0db0e48ec3 测试
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 1m49s
2024-03-14 16:21:50 +08:00
bb64a8f4c6 node
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 30s
2024-03-14 15:26:10 +08:00
1c603b1655 添加node 2024-03-14 15:23:52 +08:00
534a4dcfcf 测试
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 6s
2024-03-14 14:49:10 +08:00
7d7aaee828 测试自动发布docker镜像
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 4s
2024-03-14 14:45:26 +08:00
99ceab32b0 更新 docker-compose.yml 2024-01-13 09:12:52 +00:00
krissss
198702a335 keep actions running 2024-01-01 00:52:31 +00:00
krissss
a2182bf55b keep actions running 2023-12-01 00:52:15 +00:00
krissss
4077df5ce3 keep actions running 2023-11-01 00:47:48 +00:00
krissss
4380c47014 keep actions running 2023-10-10 09:15:09 +00:00
kriss
497f065a63 add keep actions run 2023-10-10 17:12:30 +08:00
kriss
25873bee5b docs: update 2023-02-27 15:10:31 +08:00
7 changed files with 63 additions and 37 deletions

View File

@ -1,10 +1,15 @@
name: Build Docker Image
name: Build Docker Image And Push
on:
schedule:
- cron: '0 1 * * 0'
push:
tags: [ 'v*.*.*' ]
branches:
- main
pull_request:
branches:
- main
# on:
# push:
# tags: [ 'v*.*.*' ]
env:
PHP_EXTENSION_INSTALL_VERSION: 'latest'
@ -12,32 +17,55 @@ env:
jobs:
build:
name: Build PHP ${{ matrix.php-version }}
runs-on: ${{ matrix.os }}
name: Build PHP 8.0
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
env:
PHP_CLI_VERSION: ${{ matrix.php-version }}-cli-alpine
strategy:
matrix:
os: [ ubuntu-latest ]
php-version: [ '7.4', '8.0', '8.1', '8.2' ]
max-parallel: 8
PHP_CLI_VERSION: 8.0-cli-alpine
steps:
- name: Login to Docker Hub
- name: Login to Git Docker Hub
# https://github.com/docker/login-action#docker-hub
uses: docker/login-action@v2
uses: http://git.des8.com/docker/login-action@master
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESSTOKEN }}
registry: git.des8.com
username: ${{ secrets.HUB_USERNAME }}
password: ${{ secrets.HUB_PASSWORD }}
- name: Checkout
uses: http://git.des8.com/docker/checkout@main
with:
username: ${{ secrets.HUB_USERNAME }}
password: ${{ secrets.HUB_PASSWORD }}
repository: heibai2006/webman-docker
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- name: Set up Docker BuildX
uses: https://git.des8.com/docker/setup-buildx-action@v2.6.0
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ secrets.HUB_USERNAME }}/webman-docker
- name: Build and push
# https://github.com/docker/build-push-action
uses: docker/build-push-action@v4
uses: http://git.des8.com/docker/build-push-action@master
env:
# 必需有且置空查看官方文档解释https://docs.gitea.com/zh-cn/next/usage/actions/comparison?_highlight=build&_highlight=push&_highlight=action#dockerbuild-push-actionv4
ACTIONS_RUNTIME_TOKEN: ''
with:
username: ${{ secrets.HUB_USERNAME }}
password: ${{ secrets.HUB_PASSWORD }}
repository: heibai2006/webman-docker
context: .
file: ./Dockerfile
build-args: |
PHP_CLI_VERSION=${{ env.PHP_CLI_VERSION }}
PHP_EXTENSION_INSTALL_VERSION=${{ env.PHP_EXTENSION_INSTALL_VERSION }}
COMPOSER_VERSION=${{ env.COMPOSER_VERSION }}
push: true
tags: |
${{ secrets.DOCKER_USERNAME }}/docker-webman:${{ env.PHP_CLI_VERSION }}
${{ secrets.DOCKER_USERNAME }}/docker-webman:${{ env.PHP_CLI_VERSION }}${{ github.ref_type == 'tag' && format('-{0}', github.ref_name) || '' }}
${{ secrets.HUB_USERNAME }}/webman-docker:${{ env.PHP_CLI_VERSION }}
${{ secrets.HUB_USERNAME }}/webman-docker:${{ env.PHP_CLI_VERSION }}${{ github.ref_type == 'tag' && format('-{0}', github.ref_name) || '' }}
labels: ${{ steps.meta.outputs.labels }}

View File

@ -1,5 +1,5 @@
# https://hub.docker.com/_/php
ARG PHP_CLI_VERSION=7.4-cli-alpine
ARG PHP_CLI_VERSION=8.0-cli-alpine
# https://hub.docker.com/r/mlocati/php-extension-installer
ARG PHP_EXTENSION_INSTALL_VERSION=latest
# https://hub.docker.com/r/composer/composer

View File

@ -6,14 +6,10 @@
### 镜像地址和 tag
[docker hub](https://hub.docker.com/r/krisss/docker-webman)
[docker hub](https://hub.docker.com/r/heibai2006/webman-docker)
- krisss/docker-webman:7.4-cli-alpine
- krisss/docker-webman:8.0-cli-alpine
- krisss/docker-webman:8.1-cli-alpine
- krisss/docker-webman:8.2-cli-alpine
- https://git.des8.com/heibai2006/webman-docker:8.0-cli-alpine
> 此镜像会通过 github actions 动态更新 php 的小版本,镜像 tag 名不变
### 镜像中的组件
@ -25,7 +21,7 @@
## 安装
```bash
composer require webman-tech/docker
composer require https://git.des8.com/heibai2006/webman-docker
```
会在项目根目录下提供 `Dockerfile` 用于构建镜像,提供 `docker-compose.yml` 用于开发
@ -43,7 +39,7 @@ docker run --rm --name webman \
-it \
--privileged -u root \
--entrypoint /bin/sh \
krisss/docker-webman:7.4-cli-alpine
https://git.des8.com/heibai2006/webman-docker:8.0-cli-alpine
```
创建项目
@ -70,7 +66,7 @@ version: "3.7"
services:
webman:
image: krisss/docker-webman:${DOCKER_WEBMAN_VERSION:-7.4-cli-alpine}
image: https://git.des8.com/heibai2006/webman-docker:${DOCKER_WEBMAN_VERSION:-7.4-cli-alpine}
ports:
- "${DOCKER_WEBMAN_PORT:-8787}:8787"
volumes:
@ -91,10 +87,10 @@ docker-compose up
在项目下自建 `Dockerfile`,参考例子如下:
```Dockerfile
ARG WEBMAN_DOCKER_VERSION=7.4-cli-alpine
ARG WEBMAN_DOCKER_VERSION=8.0-cli-alpine
# https://github.com/krissss/docker-webman
FROM krisss/docker-webman:$WEBMAN_DOCKER_VERSION
FROM heibai2006/webman-docker:$WEBMAN_DOCKER_VERSION
# 增加额外的扩展
#RUN install-php-extensions imagick

View File

@ -3,11 +3,13 @@
"type": "library",
"license": "MIT",
"description": "docker for webman app",
"require": {
},
"require": {},
"autoload": {
"psr-4": {
"Kriss\\WebmanDocker\\": "src"
}
},
"config": {
"github-actions-date": "2024-01-01T00:52:30.495Z"
}
}

View File

@ -2,7 +2,7 @@ version: "3.7"
services:
webman:
image: "krisss/docker-webman:${PHP_CLI_VERSION}"
image: "http://git.des8.com/heibai2006/webman-docker:${PHP_CLI_VERSION}"
build:
context: "./"
args:

View File

@ -1,8 +1,8 @@
# 用于将项目构建成镜像
ARG WEBMAN_DOCKER_VERSION=7.4-cli-alpine
ARG WEBMAN_DOCKER_VERSION=8.0-cli-alpine
# https://github.com/krissss/docker-webman
FROM krisss/docker-webman:$WEBMAN_DOCKER_VERSION
FROM https://git.des8.com/heibai2006/webman-docker:$WEBMAN_DOCKER_VERSION
# 增加额外的扩展
#RUN apk add --no-cache git

View File

@ -3,7 +3,7 @@ version: "3.7"
services:
webman:
image: krisss/docker-webman:${DOCKER_WEBMAN_VERSION:-7.4-cli-alpine}
image: https://git.des8.com/heibai2006/webman-docker:${DOCKER_WEBMAN_VERSION:-8.0-cli-alpine}
ports:
- "${DOCKER_WEBMAN_PORT:-8787}:8787"
volumes: