From 78455b74d71e3ebf80a44f09dd6747b05ec73aad Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Wed, 26 Nov 2025 14:24:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=9E=84=E5=BB=BA=E8=84=9A=E6=9C=AC):=20?= =?UTF-8?q?=E5=B0=9D=E8=AF=95=E8=BF=81=E7=A7=BB=E6=9E=84=E5=BB=BA=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 37 ----------------------------------- .gitea/workflows/build.yaml | 39 +++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 37 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 1d6b1ad..0000000 --- a/.drone.yml +++ /dev/null @@ -1,37 +0,0 @@ ---- -kind: pipeline -name: default -node: - region: cn -steps: - - name: build - pull: if-not-exists - image: debian:trixie - commands: - - sed -i "s|deb.debian.org|mirrors.ustc.edu.cn|g" /etc/apt/sources.list.d/debian.sources - - apt-get update && apt-get install -y wget unzip && rm -rf /var/lib/apt/lists/* - - wget -q -T 180 -4 https://dl.google.com/android/repository/android-ndk-r29-linux.zip - - unzip -q android-ndk-r29-linux.zip - - rm -f android-ndk-r29-linux.zip - - name: docker-cn - pull: if-not-exists - image: plugins/docker - settings: - repo: ccr.ccs.tencentyun.com/xiaoqidun/goenv - registry: ccr.ccs.tencentyun.com - username: - from_secret: docker_username - password: - from_secret: docker_password - dockerfile: DockerfileCN - - name: docker-hk - pull: if-not-exists - image: plugins/docker - settings: - repo: hkccr.ccs.tencentyun.com/xiaoqidun/goenv - registry: hkccr.ccs.tencentyun.com - username: - from_secret: docker_username - password: - from_secret: docker_password - dockerfile: DockerfileHK diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..1e4488f --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,39 @@ +name: default +on: [push, workflow_dispatch] +jobs: + build: + runs-on: cn + container: debian:trixie + strategy: + matrix: + include: + - dockerfile: DockerfileCN + registry: ccr.ccs.tencentyun.com + image: ccr.ccs.tencentyun.com/xiaoqidun/goenv:latest + - dockerfile: DockerfileHK + registry: hkccr.ccs.tencentyun.com + image: hkccr.ccs.tencentyun.com/xiaoqidun/goenv:latest + steps: + - uses: actions/checkout@v6 + - run: | + apt-get update && apt-get install -y wget unzip && rm -rf /var/lib/apt/lists/* + wget -q -T 180 -4 https://dl.google.com/android/repository/android-ndk-r29-linux.zip + unzip -q android-ndk-r29-linux.zip && rm -f android-ndk-r29-linux.zip + - 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 }}" + - uses: docker/login-action@v3 + with: + registry: ${{ matrix.registry }} + username: ${{ secrets.docker_username }} + password: ${{ secrets.docker_password }} + - uses: docker/build-push-action@v6 + with: + context: . + file: ${{ matrix.dockerfile }} + push: true + tags: ${{ matrix.image }} + provenance: false \ No newline at end of file