diff --git a/.github/workflows/tpclash.yaml b/.github/workflows/tpclash.yaml deleted file mode 100644 index 193578c..0000000 --- a/.github/workflows/tpclash.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: mritd/tpclash - -on: - schedule: - - cron: 0 0 * * 2 - workflow_call: - workflow_dispatch: - inputs: - trigger: - description: Manually trigger - required: true - type: choice - options: - - build - -jobs: - tpclash: - uses: ./.github/workflows/.earthly.yaml - secrets: inherit - with: - build-dir: tpclash diff --git a/.github/workflows/tuic-server.yaml b/.github/workflows/tuic-server.yaml index 3224dbd..ceff375 100644 --- a/.github/workflows/tuic-server.yaml +++ b/.github/workflows/tuic-server.yaml @@ -2,7 +2,7 @@ name: mritd/tuic-server on: schedule: - - cron: 0 1 * * 2 + - cron: 0 0 * * 2 workflow_call: workflow_dispatch: inputs: diff --git a/README.md b/README.md index 3c5420f..98c8668 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,6 @@ | [![mritd/dnsacme](https://github.com/mritd/autobuild/actions/workflows/dnsacme.yaml/badge.svg)](https://github.com/mritd/autobuild/actions/workflows/dnsacme.yaml) | [https://hub.docker.com/r/mritd/dnsacme](https://hub.docker.com/r/mritd/dnsacme) | | [![mritd/aria2](https://github.com/mritd/autobuild/actions/workflows/aria2.yaml/badge.svg)](https://github.com/mritd/autobuild/actions/workflows/aria2.yaml) | [https://hub.docker.com/r/mritd/aria2](https://hub.docker.com/r/mritd/aria2) | | [![mritd/makeself](https://github.com/mritd/autobuild/actions/workflows/makeself.yaml/badge.svg)](https://github.com/mritd/autobuild/actions/workflows/makeself.yaml) | [https://hub.docker.com/r/mritd/makeself](https://hub.docker.com/r/mritd/makeself) | -| [![mritd/tpclash](https://github.com/mritd/autobuild/actions/workflows/tpclash.yaml/badge.svg)](https://github.com/mritd/autobuild/actions/workflows/tpclash.yaml) | [https://hub.docker.com/r/mritd/tpclash](https://hub.docker.com/r/mritd/tpclash) | | [![mritd/tuic-server](https://github.com/mritd/autobuild/actions/workflows/tuic-server.yaml/badge.svg)](https://github.com/mritd/autobuild/actions/workflows/tuic-server.yaml) | [https://hub.docker.com/r/mritd/tuic-server](https://hub.docker.com/r/mritd/tuic-server) | | [![mritd/snell](https://github.com/mritd/autobuild/actions/workflows/snell.yaml/badge.svg)](https://github.com/mritd/autobuild/actions/workflows/snell.yaml) | [https://hub.docker.com/r/mritd/snell](https://hub.docker.com/r/mritd/snell) | | [![mritd/syncbase](https://github.com/mritd/autobuild/actions/workflows/syncbase.yaml/badge.svg)](https://github.com/mritd/autobuild/actions/workflows/syncbase.yaml) | [https://hub.docker.com/r/mritd/syncbase](https://hub.docker.com/r/mritd/syncbase) | diff --git a/tpclash/Earthfile b/tpclash/Earthfile deleted file mode 100644 index cb85e6f..0000000 --- a/tpclash/Earthfile +++ /dev/null @@ -1,57 +0,0 @@ -VERSION 0.7 - -build-premium: - DO ../.udcs/image+DEBIAN_SLIM - DO ../.udcs/os/debian+UPGRADE - - ARG --required VERSION - - ENV DOWNLOAD_URL https://github.com/mritd/tpclash/releases/download/${VERSION}/tpclash-premium-linux-$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') - - RUN set -ex \ - && apt update \ - && apt install tzdata ca-certificates curl iptables iproute2 -y \ - && curl -fsSL ${DOWNLOAD_URL} > /usr/local/bin/tpclash \ - && chmod +x /usr/local/bin/tpclash \ - && rm -rf /var/lib/apt/lists/* - - DO ../.udcs/os/debian+TIMEZONE - - VOLUME /etc/clash.yaml - - CMD ["tpclash"] - - SAVE IMAGE --push mritd/tpclash:latest mritd/tpclash:${VERSION} mritd/tpclash:premium mritd/tpclash:premium-${VERSION} - - -build-meta: - DO ../.udcs/image+DEBIAN_SLIM - DO ../.udcs/os/debian+UPGRADE - - ARG --required VERSION - - ENV DOWNLOAD_URL https://github.com/mritd/tpclash/releases/download/${VERSION}/tpclash-meta-linux-$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') - - RUN set -ex \ - && apt update \ - && apt install tzdata ca-certificates curl iptables iproute2 -y \ - && curl -fsSL ${DOWNLOAD_URL} > /usr/local/bin/tpclash \ - && chmod +x /usr/local/bin/tpclash \ - && rm -rf /var/lib/apt/lists/* - - DO ../.udcs/os/debian+TIMEZONE - - VOLUME /etc/clash.yaml - - CMD ["tpclash"] - - SAVE IMAGE --push mritd/tpclash:meta mritd/tpclash:meta-${VERSION} - -all: - #DO ../.udcs+BUILD_DATE - FROM mritd/alpine - - ARG VERSION=$(curl -sSL "https://api.github.com/repos/mritd/tpclash/releases/latest" | jq -r '.tag_name') - - BUILD --platform=linux/386 --platform=linux/amd64 --platform=linux/arm64 +build-premium --VERSION=${VERSION} - BUILD --platform=linux/386 --platform=linux/amd64 --platform=linux/arm64 +build-meta --VERSION=${VERSION}