File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- .ai *
1+ .claude
22.git *
33.poetry
4- .venv
4+ .pytest_cache
5+ .ruff *
6+ .vscode
57__pycache__
68apicache
7- ignored
8-
9- pywikibot- * .lwp
10- throttle.ctrl
11- user-password.py
12- * .sh
Original file line number Diff line number Diff line change 1+ name : Docker
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ env :
9+ REGISTRY : ghcr.io
10+ IMAGE_NAME : ${{ github.repository }}
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ permissions :
16+ contents : read
17+ packages : write
18+ attestations : write
19+ id-token : write
20+
21+ steps :
22+ - uses : actions/checkout@v6
23+
24+ - uses : docker/login-action@v4
25+ with :
26+ registry : ghcr.io
27+ username : ${{ github.actor }}
28+ password : ${{ secrets.GITHUB_TOKEN }}
29+
30+ - name : Extract metadata (tags, labels) for Docker
31+ id : meta
32+ uses : docker/metadata-action@v6
33+ with :
34+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
35+
36+ - name : Setup Docker Buildx
37+ uses : docker/setup-buildx-action@v4
38+
39+ - name : Build and push Docker image
40+ id : push
41+ uses : docker/build-push-action@v7
42+ with :
43+ context : .
44+ push : true
45+ tags : ${{ steps.meta.outputs.tags }}
46+ labels : ${{ steps.meta.outputs.labels }}
47+ cache-from : type=gha
48+ cache-to : type=gha,mode=max
49+
50+ - name : Generate artifact attestation
51+ uses : actions/attest-build-provenance@v4
52+ with :
53+ subject-name : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
54+ subject-digest : ${{ steps.push.outputs.digest }}
55+ push-to-registry : true
Original file line number Diff line number Diff line change 1- FROM python:3.13.12 -alpine3.23
1+ FROM python:3.13.13 -alpine3.23
22
33RUN pip install poetry
44
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class RateLimitExhausted(Exception):
3333class BaseBot (ClaimsMixin ):
3434 summary = "add [[Commons:Structured data|SDC]] based on metadata"
3535 redis_prefix = ""
36- throttle = 5
36+ throttle = 10
3737 search_query = ""
3838 always_null_edit = False
3939
You can’t perform that action at this time.
0 commit comments