diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 8a651b9..0000000 --- a/.drone.yml +++ /dev/null @@ -1,22 +0,0 @@ -kind: pipeline -name: default -node: - region: cn -steps: - - name: build - pull: if-not-exists - image: alpine - commands: - - apk add zip - - zip -r fileadmin.zip * - - name: upload - 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: fileadmin.zip - target: product \ No newline at end of file diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..421ce1d --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,18 @@ +on: [push, workflow_dispatch] +jobs: + build: + runs-on: cn + steps: + - name: checkout + uses: actions/checkout@v6 + run: | + apt-get update && apt-get install -y zip && rm -rf /var/lib/apt/lists/* + zip -r fileadmin.zip * + - 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: fileadmin.zip + PLUGIN_TARGET: product \ No newline at end of file