first commit
This commit is contained in:
39
Xboard/.github/ISSUE_TEMPLATE/bug-report.md
vendored
Normal file
39
Xboard/.github/ISSUE_TEMPLATE/bug-report.md
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
---
|
||||
name: 🐛 问题反馈 | Bug Report
|
||||
about: 提交使用过程中遇到的问题 | Report an issue
|
||||
title: "Bug Report:"
|
||||
labels: '🐛 bug'
|
||||
assignees: ''
|
||||
---
|
||||
|
||||
<!-- 🔴 请注意:XrayR等非XBoard问题请前往相应项目提问 -->
|
||||
<!-- 🔴 Note: For XrayR and other non-XBoard issues, please report to their respective projects -->
|
||||
|
||||
> ⚠️ 请务必按照模板填写完整信息,没有详细描述的issue可能会被忽略或关闭
|
||||
> ⚠️ Please follow the template to provide complete information, issues without detailed description may be ignored or closed
|
||||
|
||||
**基本信息 | Basic Info**
|
||||
```yaml
|
||||
XBoard版本 | Version:
|
||||
部署方式 | Deployment: [Docker/手动部署]
|
||||
PHP版本 | Version:
|
||||
数据库 | Database:
|
||||
```
|
||||
|
||||
**问题描述 | Description**
|
||||
<!-- 简要描述你遇到的问题 -->
|
||||
|
||||
|
||||
**复现步骤 | Steps**
|
||||
<!-- 如何复现这个问题? -->
|
||||
1.
|
||||
2.
|
||||
|
||||
**相关截图 | Screenshots**
|
||||
<!-- 拖拽图片到这里(请注意隐藏敏感信息)-->
|
||||
|
||||
**日志信息 | Logs**
|
||||
<!-- storage/logs 目录下的日志 -->
|
||||
```log
|
||||
// 粘贴日志内容到这里
|
||||
```
|
||||
28
Xboard/.github/ISSUE_TEMPLATE/feature-request.md
vendored
Normal file
28
Xboard/.github/ISSUE_TEMPLATE/feature-request.md
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
name: ✨ 功能请求 | Feature Request
|
||||
about: 提交新功能建议或改进意见 | Suggest an idea
|
||||
title: "Feature Request:"
|
||||
labels: '✨ enhancement'
|
||||
assignees: ''
|
||||
---
|
||||
|
||||
> ⚠️ 请务必按照模板详细描述你的需求,没有详细描述的issue可能会被忽略或关闭
|
||||
> ⚠️ Please follow the template to describe your request in detail, issues without detailed description may be ignored or closed
|
||||
|
||||
**需求描述 | Description**
|
||||
<!-- 描述你希望添加的功能或改进建议 -->
|
||||
|
||||
|
||||
**使用场景 | Use Case**
|
||||
<!-- 描述这个功能会在什么场景下使用,解决什么问题 -->
|
||||
|
||||
|
||||
**功能建议 | Suggestion**
|
||||
<!-- 你期望这个功能是什么样的?可以描述一下具体实现方式 -->
|
||||
```yaml
|
||||
功能形式 | Type: [新功能/功能优化/界面改进]
|
||||
预期效果 | Expected:
|
||||
```
|
||||
|
||||
**补充说明 | Additional**
|
||||
<!-- 其他补充说明或者参考示例 -->
|
||||
100
Xboard/.github/workflows/docker-publish.yml
vendored
Normal file
100
Xboard/.github/workflows/docker-publish.yml
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
name: Docker Build and Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["master", "new-dev"]
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
with:
|
||||
platforms: 'arm64,amd64'
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
driver-opts: |
|
||||
image=moby/buildkit:v0.20.0
|
||||
network=host
|
||||
|
||||
- name: Free Disk Space
|
||||
run: |
|
||||
sudo rm -rf /usr/share/dotnet
|
||||
sudo rm -rf /usr/local/lib/android
|
||||
sudo rm -rf /opt/ghc
|
||||
sudo rm -rf /opt/hostedtoolcache/CodeQL
|
||||
sudo docker image prune -af
|
||||
|
||||
- name: Login to registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=sha,format=short,prefix=,enable=true
|
||||
type=raw,value=new,enable=${{ github.ref == 'refs/heads/master' }}
|
||||
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
|
||||
type=raw,value=${{ steps.get_version.outputs.version }}
|
||||
labels: |
|
||||
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
|
||||
org.opencontainers.image.revision=${{ github.sha }}
|
||||
|
||||
- name: Get version
|
||||
id: get_version
|
||||
run: echo "version=$(git describe --tags --always)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Update version in app.php
|
||||
run: |
|
||||
VERSION=$(date '+%Y%m%d')-$(git rev-parse --short HEAD)
|
||||
sed -i "s/'version' => '.*'/'version' => '$VERSION'/g" config/app.php
|
||||
echo "Updated version to: $VERSION"
|
||||
|
||||
- name: Build and push
|
||||
id: build-and-push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
build-args: |
|
||||
BUILDKIT_INLINE_CACHE=1
|
||||
BUILDKIT_MULTI_PLATFORM=1
|
||||
CACHEBUST=${{ github.sha }}
|
||||
REPO_URL=https://github.com/${{ github.repository }}
|
||||
BRANCH_NAME=${{ github.ref_name }}
|
||||
provenance: false
|
||||
outputs: type=registry,push=true
|
||||
allow: |
|
||||
network.host
|
||||
|
||||
Reference in New Issue
Block a user