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- __pycache__
1+ __pycache__ /
22* .pyc
33* .pyo
44.venv /
55.venv
66.git /
7- .github /
87.vscode /
98.idea /
109tests /
11- * .md
1210.env
1311* .log
1412.DS_Store
1513invoice_cache.json
1614invoice_summary.xlsx
1715fp /dump /
1816fp /organized /
17+ fp /* .pdf
18+ * .md
19+ ! README.md
Original file line number Diff line number Diff line change 1+ name : Build and Push Docker Image
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ tags : [ 'v*' ]
7+ pull_request :
8+ branches : [ main ]
9+
10+ env :
11+ REGISTRY : ghcr.io
12+ IMAGE_NAME : ${{ github.repository }}
13+
14+ jobs :
15+ build-and-push :
16+ runs-on : ubuntu-latest
17+ permissions :
18+ contents : read
19+ packages : write
20+
21+ steps :
22+ - name : Checkout repository
23+ uses : actions/checkout@v4
24+
25+ - name : Set up QEMU
26+ uses : docker/setup-qemu-action@v3
27+
28+ - name : Set up Docker Buildx
29+ uses : docker/setup-buildx-action@v3
30+
31+ - name : Log in to Container Registry
32+ if : github.event_name != 'pull_request'
33+ uses : docker/login-action@v3
34+ with :
35+ registry : ${{ env.REGISTRY }}
36+ username : ${{ github.actor }}
37+ password : ${{ secrets.GITHUB_TOKEN }}
38+
39+ - name : Extract metadata
40+ id : meta
41+ uses : docker/metadata-action@v5
42+ with :
43+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
44+ tags : |
45+ type=ref,event=branch
46+ type=semver,pattern={{version}}
47+ type=semver,pattern={{major}}.{{minor}}
48+ type=sha
49+
50+ - name : Build and push Docker image
51+ uses : docker/build-push-action@v5
52+ with :
53+ context : .
54+ push : ${{ github.event_name != 'pull_request' }}
55+ tags : ${{ steps.meta.outputs.tags }}
56+ labels : ${{ steps.meta.outputs.labels }}
57+ cache-from : type=gha
58+ cache-to : type=gha,mode=max
Original file line number Diff line number Diff line change 1+ # Python
12__pycache__ /
2- venv /
3- * .log
43* .pyc
4+ * .pyo
5+ * .egg-info /
6+ dist /
7+ build /
8+
9+ # Virtual environments
10+ .venv /
11+ venv /
12+
13+ # IDE
14+ .vscode /
15+ .idea /
16+ * .swp
17+ * .swo
18+
19+ # OS
520.DS_Store
21+ Thumbs.db
22+
23+ # Environment
624.env
25+ * .log
726
827# Data and Outputs
9- fp /
10- zip /
28+ fp /dump /
29+ fp /organized /
30+ fp /* .pdf
1131invoice_cache.json
1232invoice_summary.xlsx
13- debug_output.txt
33+
34+ # Lock files (keep pyproject.toml, ignore uv.lock for portability)
35+ uv.lock
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ RUN pip install --no-cache-dir -r requirements.txt
1212
1313COPY . .
1414
15- RUN mkdir -p fp/dump fp/organized static config
15+ RUN mkdir -p fp/dump fp/organized
1616
1717EXPOSE 8000
1818
You can’t perform that action at this time.
0 commit comments