Compare commits

...

18 Commits
v1.0.3 ... 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

View File

@ -2,7 +2,14 @@ name: Build Docker Image And Push
on:
push:
tags: [ 'v*.*.*' ]
branches:
- main
pull_request:
branches:
- main
# on:
# push:
# tags: [ 'v*.*.*' ]
env:
PHP_EXTENSION_INSTALL_VERSION: 'latest'
@ -10,44 +17,47 @@ env:
jobs:
build:
name: Build PHP ${{ matrix.php-version }}
runs-on: ${{ matrix.os }}
container:
# 使用支持docker的act镜像
image: catthehacker/ubuntu:act-latest
volumes:
# 缓存docker构建步骤
- ubuntu_dockercache:/opt/dockercache
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: ['8.0']
max-parallel: 8
PHP_CLI_VERSION: 8.0-cli-alpine
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.HUB_PASSWORD }}
- name: Login to Git Docker Hub
# https://github.com/docker/login-action#docker-hub
uses: docker/login-action@v3
uses: http://git.des8.com/docker/login-action@master
with:
registry: git.des8.com
username: ${{ secrets.HUB_USERNAME }}
password: ${{ secrets.HUB_PASSWORD }}
# - name: Get Meta
# id: meta
# run: |
# echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
# echo REPO_VERSION=$(echo ${{ github.ref }} | awk -F"/" '{print $3}' | awk -F"v" '{print $2}') >> $GITHUB_OUTPUT
- 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: 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: |
@ -58,3 +68,4 @@ jobs:
tags: |
${{ 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 }}