~全面适配容器环境,并支持S6守护进程

~移除了部分已移除功能的冗余代码
~修复自定义策略组总是对齐失败的bug
This commit is contained in:
juewuy
2025-12-17 20:45:19 +08:00
parent f720451c2e
commit d9cac20804
19 changed files with 201 additions and 44 deletions

53
.github/workflows/docker.yaml vendored Normal file
View File

@@ -0,0 +1,53 @@
name: docker-build-push
on:
push:
branches: [ dev ]
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v5
with:
ref: dev
fetch-depth: 1
# QEMU 支持
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# 登录 Docker Hub
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# 构建并推送
- name: Build and push (multi-arch)
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
platforms: |
linux/386
linux/amd64
linux/arm64
linux/arm/v7
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/shellcrash:latest
${{ secrets.DOCKERHUB_USERNAME }}/shellcrash:${{ github.ref_name }}