Ref: no docker

This commit is contained in:
Kirill Sobakin
2026-03-16 22:55:17 +03:00
parent 76f8f79434
commit 2868f4576e
3 changed files with 22 additions and 31 deletions

View File

@@ -19,19 +19,26 @@ jobs:
generate-lists: generate-lists:
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
steps: steps:
- uses: actions/checkout@v4.3.0 - uses: actions/checkout@v6.0.2
- name: Compile ruleset srs
- name: Cache sing-box
uses: actions/cache@v4
id: cache-singbox
with:
path: /usr/local/bin/sing-box
key: sing-box-1.12.25
- name: Install sing-box
if: steps.cache-singbox.outputs.cache-hit != 'true'
run: | run: |
docker run --rm \ wget -qO- https://github.com/SagerNet/sing-box/releases/download/v1.12.25/sing-box-1.12.25-linux-amd64.tar.gz | tar xz
-v ${{ github.workspace }}/src:/app/src \ sudo mv sing-box-*/sing-box /usr/local/bin/
-v ${{ github.workspace }}/Subnets:/app/Subnets \
-v ${{ github.workspace }}/Russia:/app/Russia \ - name: Install Python dependencies
-v ${{ github.workspace }}/Ukraine:/app/Ukraine \ run: pip install -r requirements.txt
-v ${{ github.workspace }}/Categories:/app/Categories \
-v ${{ github.workspace }}/Services:/app/Services \ - name: Generate lists
-v ${{ github.workspace }}/SRS:/app/SRS \ run: python3 convert.py
-v ${{ github.workspace }}/DAT:/app/DAT \
itdoginfo/compilesrs:0.1.22
- name: Check Russia/inside-dnsmasq-ipset - name: Check Russia/inside-dnsmasq-ipset
uses: itdoginfo/dnsmasq-action@0.1 uses: itdoginfo/dnsmasq-action@0.1

View File

@@ -16,11 +16,11 @@ jobs:
generate-subnet: generate-subnet:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v4.1.7 - uses: actions/checkout@v6.0.2
- name: Generate subnets - name: Generate subnets
uses: actions/setup-python@v5.1.0 uses: actions/setup-python@v6.2.0
with: with:
python-version: '3.10' python-version: '3.13'
- run: | - run: |
python get-subnets.py python get-subnets.py
- name: Push subnets - name: Push subnets

View File

@@ -1,16 +0,0 @@
FROM ghcr.io/sagernet/sing-box:v1.12.25 AS sing-box
FROM python:3.12.12-alpine3.23
COPY --from=sing-box /usr/local/bin/sing-box /bin/sing-box
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
WORKDIR /app
COPY proto/ /app/proto/
COPY convert.py /app/convert.py
CMD ["python3", "convert.py"]