mirror of
https://github.com/itdoginfo/allow-domains.git
synced 2025-09-02 02:29:46 +00:00
Action for srs compile
This commit is contained in:
parent
cfbd0a5efd
commit
2d63876c0f
4 changed files with 17 additions and 18 deletions
28
.github/workflows/create-srs.yml
vendored
28
.github/workflows/create-srs.yml
vendored
|
@ -1,34 +1,34 @@
|
||||||
name: Convert to srs
|
name: Create srs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "srs" ]
|
||||||
paths:
|
paths:
|
||||||
- .github/workflows/create-srs.yml
|
- .github/workflows/create-srs.yml
|
||||||
# - src/**
|
- Categories/**
|
||||||
# - convert.py
|
- Services/**
|
||||||
|
- src/**
|
||||||
|
- Sing-box-compile-srs/**
|
||||||
# schedule:
|
# schedule:
|
||||||
# - cron: '33 */8 * * *'
|
# - cron: '33 */8 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
convert-and-release:
|
compile-and-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4.1.7
|
uses: actions/checkout@v4.1.7
|
||||||
|
|
||||||
- name: Run Plain2srs Docker Container
|
- name: Compile ruleset srs
|
||||||
run: |
|
run: |
|
||||||
docker run --name plain2srs-container \
|
docker run --rm \
|
||||||
-v "${{ github.workspace }}:/workspace" \
|
-v ${{ github.workspace }}/Categories:/app/Categories \
|
||||||
itdoginfo/plain2srs-action:20241216 \
|
-v ${{ github.workspace }}/Services:/app/Services \
|
||||||
-i /workspace/Russia/inside-raw.lst \
|
-v ${{ github.workspace }}/SRS:/app/SRS \
|
||||||
-o russia-inside \
|
itdoginfo/compilesrs:0.1
|
||||||
-c
|
|
||||||
docker cp plain2srs-container:/app/plain2srs/output/russia-inside.srs ${{ github.workspace }}/russia-inside.srs
|
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2.1.0
|
uses: softprops/action-gh-release@v2.1.0
|
||||||
with:
|
with:
|
||||||
files: "${{ github.workspace }}/russia-inside.srs"
|
files: "${{ github.workspace }}/SRS/*.srs"
|
||||||
tag_name: latest
|
tag_name: latest
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
antifilter-domains.lst
|
antifilter-domains.lst
|
||||||
uablacklist-domains.lst
|
uablacklist-domains.lst
|
||||||
zaboronahelp-domains.lst
|
zaboronahelp-domains.lst
|
||||||
|
SRS
|
|
@ -10,6 +10,4 @@ COPY compile-srs.py /app/compile-srs.py
|
||||||
|
|
||||||
VOLUME ["/app/Categories", "/app/Services"]
|
VOLUME ["/app/Categories", "/app/Services"]
|
||||||
|
|
||||||
CMD ["python3", "compile-srs.py"]
|
CMD ["python3", "compile-srs.py"]
|
||||||
|
|
||||||
# docker run --rm -v ./Categories:/app/Categories -v ./Services:/app/Services -v ./json:/app/json py-sg:1
|
|
Loading…
Add table
Reference in a new issue