feat(实现功能): 实现功能

This commit is contained in:
2025-11-26 18:20:44 +08:00
commit 2fd9d94d4e
6 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
on: [push, workflow_dispatch]
jobs:
build:
runs-on: cn
container: ccr.ccs.tencentyun.com/xiaoqidun/actbi:latest
strategy:
matrix:
include:
- dockerfile: DockerfileCN
registry: ccr.ccs.tencentyun.com
image: ccr.ccs.tencentyun.com/xiaoqidun/actbi:latest
- dockerfile: DockerfileHK
registry: hkccr.ccs.tencentyun.com
image: hkccr.ccs.tencentyun.com/xiaoqidun/actbi:latest
steps:
- name: checkout
uses: actions/checkout@v6
- name: docker setup
uses: docker/setup-buildx-action@v3
with:
driver-opts: |
"env.http_proxy=${{ env.HTTP_PROXY }}"
"env.https_proxy=${{ env.HTTPS_PROXY }}"
"env.no_proxy=${{ env.NO_PROXY }}"
- name: docker login
uses: docker/login-action@v3
with:
registry: ${{ matrix.registry }}
username: ${{ secrets.docker_username }}
password: ${{ secrets.docker_password }}
- name: docker build
uses: docker/build-push-action@v6
with:
context: .
push: true
provenance: false
file: ${{ matrix.dockerfile }}
tags: ${{ matrix.image }}

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
.idea/
.vscode/
.devcontainer/

16
DockerfileCN Normal file
View File

@@ -0,0 +1,16 @@
# 基础镜像
FROM node:20-bookworm-slim
# 作者信息
LABEL authors="xiaoqidun"
# 国内镜像
RUN sed -i "s|deb.debian.org|mirrors.ustc.edu.cn|g" /etc/apt/sources.list.d/debian.sources
# 安装证书
RUN apt-get update \
&& apt-get install -y ca-certificates curl \
&& rm -rf /var/lib/apt/lists/*
# 安装docker
COPY --from=docker:cli /usr/local/bin/docker /usr/local/bin/

13
DockerfileHK Normal file
View File

@@ -0,0 +1,13 @@
# 基础镜像
FROM node:20-bookworm-slim
# 作者信息
LABEL authors="xiaoqidun"
# 安装证书
RUN apt-get update \
&& apt-get install -y ca-certificates curl \
&& rm -rf /var/lib/apt/lists/*
# 安装docker
COPY --from=docker:cli /usr/local/bin/docker /usr/local/bin/

21
LICENSE Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2025 xiaoqidun
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

9
README.md Normal file
View File

@@ -0,0 +1,9 @@
# ActBIAct Base Image
基于node:20-bookworm-slim集成Docker CLI的Gitea Actions基础镜像
# 镜像地址
国内CNccr.ccs.tencentyun.com/xiaoqidun/actbi:latest
海外HKhkccr.ccs.tencentyun.com/xiaoqidun/actbi:latest