mirror of
https://github.com/itdoginfo/allow-domains.git
synced 2025-04-17 12:09:07 +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:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
branches: [ "main", "srs" ]
|
||||
paths:
|
||||
- .github/workflows/create-srs.yml
|
||||
# - src/**
|
||||
# - convert.py
|
||||
- Categories/**
|
||||
- Services/**
|
||||
- src/**
|
||||
- Sing-box-compile-srs/**
|
||||
# schedule:
|
||||
# - cron: '33 */8 * * *'
|
||||
|
||||
jobs:
|
||||
convert-and-release:
|
||||
compile-and-release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
|
||||
- name: Run Plain2srs Docker Container
|
||||
- name: Compile ruleset srs
|
||||
run: |
|
||||
docker run --name plain2srs-container \
|
||||
-v "${{ github.workspace }}:/workspace" \
|
||||
itdoginfo/plain2srs-action:20241216 \
|
||||
-i /workspace/Russia/inside-raw.lst \
|
||||
-o russia-inside \
|
||||
-c
|
||||
docker cp plain2srs-container:/app/plain2srs/output/russia-inside.srs ${{ github.workspace }}/russia-inside.srs
|
||||
docker run --rm \
|
||||
-v ${{ github.workspace }}/Categories:/app/Categories \
|
||||
-v ${{ github.workspace }}/Services:/app/Services \
|
||||
-v ${{ github.workspace }}/SRS:/app/SRS \
|
||||
itdoginfo/compilesrs:0.1
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v2.1.0
|
||||
with:
|
||||
files: "${{ github.workspace }}/russia-inside.srs"
|
||||
files: "${{ github.workspace }}/SRS/*.srs"
|
||||
tag_name: latest
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
antifilter-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"]
|
||||
|
||||
CMD ["python3", "compile-srs.py"]
|
||||
|
||||
# docker run --rm -v ./Categories:/app/Categories -v ./Services:/app/Services -v ./json:/app/json py-sg:1
|
||||
CMD ["python3", "compile-srs.py"]
|
Loading…
Add table
Reference in a new issue