From 41b2bfb936bebb08a8618c054f956e9603552b25 Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Thu, 27 Nov 2025 14:22:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=9E=84=E5=BB=BA=E8=BF=81=E7=A7=BB):=20?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E8=BF=81=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 29 ----------------------------- .gitea/workflows/build.yaml | 28 ++++++++++++++++++++++++++++ go.mod | 2 +- 3 files changed, 29 insertions(+), 30 deletions(-) delete mode 100644 .drone.yml create mode 100644 .gitea/workflows/build.yaml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 4105d63..0000000 --- a/.drone.yml +++ /dev/null @@ -1,29 +0,0 @@ -kind: pipeline -type: docker -name: default -node: - region: cn -steps: - - name: generate - pull: if-not-exists - image: ccr.ccs.tencentyun.com/xiaoqidun/build - commands: - - build -f build.sh -i ihash.go -o release/ihash - - name: build - pull: if-not-exists - image: ccr.ccs.tencentyun.com/xiaoqidun/goenv - commands: - - ./build.sh - - name: upload - pull: if-not-exists - image: ccr.ccs.tencentyun.com/xiaoqidun/gocos - settings: - secret_id: - from_secret: cos_secret_id - secret_key: - from_secret: cos_secret_key - bucket_url: - from_secret: cos_bucket_url - source: release/ - target: product/ihash - strip_prefix: release/ \ No newline at end of file diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..33b19f7 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,28 @@ +on: [push, workflow_dispatch] +jobs: + build: + runs-on: cn + steps: + - name: checkout + uses: actions/checkout@v6 + - name: generate + uses: ccr.ccs.tencentyun.com/xiaoqidun/build + with: + args: build -f build.sh -i ihash.go -o release/ihash + - name: docker goenv + uses: docker://ccr.ccs.tencentyun.com/xiaoqidun/goenv:latest + env: + GIT_SERVER: ${{ secrets.git_server }} + GIT_USER: ${{ secrets.git_user }} + GIT_TOKEN: ${{ secrets.git_token }} + with: + args: bash build.sh + - name: upload to cos + uses: docker://ccr.ccs.tencentyun.com/xiaoqidun/gocos + env: + PLUGIN_SECRET_ID: ${{secrets.cos_secret_id}} + PLUGIN_SECRET_KEY: ${{secrets.cos_secret_key}} + PLUGIN_BUCKET_URL: ${{secrets.cos_bucket_url}} + PLUGIN_SOURCE: release/ + PLUGIN_TARGET: product/ihash + PLUGIN_STRIP_PREFIX: release/ \ No newline at end of file diff --git a/go.mod b/go.mod index d9ee2f3..e8f7c49 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/xiaoqidun/ihash -go 1.24.2 +go 1.25.4