mirror of
https://github.com/itdoginfo/allow-domains.git
synced 2026-07-09 17:19:07 +00:00
Ref: no docker
This commit is contained in:
parent
76f8f79434
commit
2868f4576e
3 changed files with 22 additions and 31 deletions
31
.github/workflows/create-lists.yml
vendored
31
.github/workflows/create-lists.yml
vendored
|
|
@ -19,19 +19,26 @@ jobs:
|
|||
generate-lists:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4.3.0
|
||||
- name: Compile ruleset srs
|
||||
- uses: actions/checkout@v6.0.2
|
||||
|
||||
- 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: |
|
||||
docker run --rm \
|
||||
-v ${{ github.workspace }}/src:/app/src \
|
||||
-v ${{ github.workspace }}/Subnets:/app/Subnets \
|
||||
-v ${{ github.workspace }}/Russia:/app/Russia \
|
||||
-v ${{ github.workspace }}/Ukraine:/app/Ukraine \
|
||||
-v ${{ github.workspace }}/Categories:/app/Categories \
|
||||
-v ${{ github.workspace }}/Services:/app/Services \
|
||||
-v ${{ github.workspace }}/SRS:/app/SRS \
|
||||
-v ${{ github.workspace }}/DAT:/app/DAT \
|
||||
itdoginfo/compilesrs:0.1.22
|
||||
wget -qO- https://github.com/SagerNet/sing-box/releases/download/v1.12.25/sing-box-1.12.25-linux-amd64.tar.gz | tar xz
|
||||
sudo mv sing-box-*/sing-box /usr/local/bin/
|
||||
|
||||
- name: Install Python dependencies
|
||||
run: pip install -r requirements.txt
|
||||
|
||||
- name: Generate lists
|
||||
run: python3 convert.py
|
||||
|
||||
- name: Check Russia/inside-dnsmasq-ipset
|
||||
uses: itdoginfo/dnsmasq-action@0.1
|
||||
|
|
|
|||
6
.github/workflows/create-subnets.yml
vendored
6
.github/workflows/create-subnets.yml
vendored
|
|
@ -16,11 +16,11 @@ jobs:
|
|||
generate-subnet:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.7
|
||||
- uses: actions/checkout@v6.0.2
|
||||
- name: Generate subnets
|
||||
uses: actions/setup-python@v5.1.0
|
||||
uses: actions/setup-python@v6.2.0
|
||||
with:
|
||||
python-version: '3.10'
|
||||
python-version: '3.13'
|
||||
- run: |
|
||||
python get-subnets.py
|
||||
- name: Push subnets
|
||||
|
|
|
|||
16
Dockerfile
16
Dockerfile
|
|
@ -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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue