diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml
index 602b51387d0..d75c1b73a02 100644
--- a/.github/workflows/build-and-push.yml
+++ b/.github/workflows/build-and-push.yml
@@ -23,66 +23,8 @@ on:
type: choice
options:
- dockerhub
- - fit2cloud-registry
- - dockerhub, fit2cloud-registry
jobs:
- build-and-push-to-fit2cloud-registry:
- if: ${{ contains(github.event.inputs.registry, 'fit2cloud') }}
- runs-on: ubuntu-latest
- steps:
- - name: Check Disk Space
- run: df -h
- - name: Free Disk Space (Ubuntu)
- uses: jlumbroso/free-disk-space@main
- with:
- tool-cache: true
- android: true
- dotnet: true
- haskell: true
- large-packages: true
- docker-images: true
- swap-storage: true
- - name: Check Disk Space
- run: df -h
- - name: Checkout
- uses: actions/checkout@v4
- with:
- ref: ${{ github.ref_name }}
- - name: Prepare
- id: prepare
- run: |
- DOCKER_IMAGE=registry-hkproxy.fit2cloud.com/maxkb/maxkb
- DOCKER_PLATFORMS=${{ github.event.inputs.architecture }}
- TAG_NAME=${{ github.event.inputs.dockerImageTag }}
- if [[ ${TAG_NAME} == *dev* ]]; then
- DOCKER_IMAGE_TAGS="--tag ${DOCKER_IMAGE}:${TAG_NAME}"
- else
- DOCKER_IMAGE_TAGS="--tag ${DOCKER_IMAGE}:${TAG_NAME} --tag ${DOCKER_IMAGE}:latest"
- fi
- echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
- --build-arg DOCKER_IMAGE_TAG=${{ github.event.inputs.dockerImageTag }} --build-arg BUILD_AT=$(TZ=Asia/Shanghai date +'%Y-%m-%dT%H:%M') --build-arg GITHUB_COMMIT=${GITHUB_SHA::8} --no-cache \
- ${DOCKER_IMAGE_TAGS} .
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v3
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3
- - name: Login to GitHub Container Registry
- uses: docker/login-action@v3
- with:
- registry: ghcr.io
- username: ${{ github.actor }}
- password: ${{ secrets.GH_TOKEN }}
- - name: Login to FIT2CLOUD Registry
- uses: docker/login-action@v3
- with:
- registry: registry-hkproxy.fit2cloud.com
- username: ${{ secrets.FIT2CLOUD_REGISTRY_USERNAME }}
- password: ${{ secrets.FIT2CLOUD_REGISTRY_PASSWORD }}
- - name: Docker Buildx (build-and-push)
- run: |
- docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }} -f installer/Dockerfile
-
build-and-push-to-dockerhub:
if: ${{ contains(github.event.inputs.registry, 'dockerhub') }}
runs-on: ubuntu-latest
@@ -108,7 +50,7 @@ jobs:
- name: Prepare
id: prepare
run: |
- DOCKER_IMAGE=1panel/maxkb
+ DOCKER_IMAGE=your-dockerhub-username/maxkb
DOCKER_PLATFORMS=${{ github.event.inputs.architecture }}
TAG_NAME=${{ github.event.inputs.dockerImageTag }}
if [[ ${TAG_NAME} == *dev* ]]; then
@@ -123,12 +65,6 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- - name: Login to GitHub Container Registry
- uses: docker/login-action@v3
- with:
- registry: ghcr.io
- username: ${{ github.actor }}
- password: ${{ secrets.GH_TOKEN }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
diff --git a/.github/workflows/sync2gitee.yml b/.github/workflows/sync2gitee.yml
deleted file mode 100644
index 186cf1570c0..00000000000
--- a/.github/workflows/sync2gitee.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-name: sync2gitee
-on: [push]
-
-jobs:
- repo-sync:
- runs-on: ubuntu-latest
- steps:
- - name: Mirror the Github organization repos to Gitee.
- uses: Yikun/hub-mirror-action@master
- with:
- src: 'github/1Panel-dev'
- dst: 'gitee/fit2cloud-feizhiyun'
- dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
- dst_token: ${{ secrets.GITEE_TOKEN }}
- static_list: "MaxKB"
- force_update: true
\ No newline at end of file
diff --git a/.github/workflows/typos_check.yml b/.github/workflows/typos_check.yml
deleted file mode 100644
index 099b219d3e8..00000000000
--- a/.github/workflows/typos_check.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-name: Typos Check
-on: [push, pull_request]
-
-jobs:
- run:
- name: Spell Check with Typos
- runs-on: ubuntu-latest
- steps:
- - name: Checkout Actions Repository
- uses: actions/checkout@v2
-
- - name: Check spelling
- uses: crate-ci/typos@master
diff --git a/README.md b/README.md
index 1e98165173b..322474338b3 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ docker run -d --name=maxkb -p 8080:8080 -v ~/.maxkb:/var/lib/postgresql/data cr2
- [演示视频](https://www.bilibili.com/video/BV1BE421M7YM/)
- [论坛求助](https://bbs.fit2cloud.com/c/mk/11)
- 技术交流群
-
你好,我是你的智能小助手。
点我,开启高效解答模式,让问题变成过去式。