Skip to content

Commit

Permalink
improve ci
Browse files Browse the repository at this point in the history
  • Loading branch information
weclaw1 committed Jun 7, 2024
1 parent 59ad013 commit d4905f4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Dockerfile
LICENSE
README.md
.gitignore
.vscode/
.github/
.git/
**/__pycache__/
resources/
6 changes: 3 additions & 3 deletions .github/workflows/github_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
poetry run test
- name: Build
run: |
poetry run pyinstaller --onefile --windowed --hidden-import='PIL._tkinter_finder' inbac/inbac.py
poetry run pyinstaller --onefile --windowed --hidden-import=tkinter inbac/inbac.py
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
Expand All @@ -52,7 +52,7 @@ jobs:
poetry run test
- name: Build
run: |
poetry run pyinstaller --onefile --windowed --hidden-import='PIL._tkinter_finder' inbac\inbac.py
poetry run pyinstaller --onefile --windowed --hidden-import=tkinter inbac\inbac.py
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
poetry run test
- name: Build
run: |
poetry run pyinstaller --onefile --windowed --hidden-import='PIL._tkinter_finder' inbac/inbac.py
poetry run pyinstaller --onefile --windowed --hidden-import=tkinter inbac/inbac.py
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
Expand Down
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM debian:12-slim AS build
ARG POETRY_VERSION=1.8.3

RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests \
python3-venv libpython3-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
python3 -m venv /venv && \
/venv/bin/pip install --upgrade pip setuptools && \
/venv/bin/pip install poetry==${POETRY_VERSION}

0 comments on commit d4905f4

Please sign in to comment.