mirror of
https://github.com/itdoginfo/allow-domains.git
synced 2026-03-26 06:46:24 +03:00
Ref: no docker
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user