Compare commits
No commits in common. "5fbf65816d34f653a519f72f426b3cb063abcb22" and "8f7008c9102c5cbdd4183dff3142de617d4fa34a" have entirely different histories.
5fbf65816d
...
8f7008c910
4 changed files with 6 additions and 73 deletions
|
|
@ -1,46 +0,0 @@
|
||||||
name: Auto Deploy pdf-web-tolkit
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
# Environment/Checks
|
|
||||||
check-docker-state:
|
|
||||||
name: Check Docker State
|
|
||||||
runs-on: host
|
|
||||||
timeout-minutes: 5
|
|
||||||
steps:
|
|
||||||
- run: docker ps
|
|
||||||
|
|
||||||
pdf-tools-git-prep:
|
|
||||||
runs-on: host
|
|
||||||
timeout-minutes: 5
|
|
||||||
needs: [ check-docker-state ]
|
|
||||||
steps:
|
|
||||||
# - run: apt install git || true
|
|
||||||
- run: (cd /root && git clone https://git.tidoni-sky.ddnss.de/tidoni/pdf-web-toolkit.git || true)
|
|
||||||
- run: (cd /root/pdf-web-toolkit && git pull --rebase --autostash)
|
|
||||||
|
|
||||||
# Build
|
|
||||||
bld-pdf-tools:
|
|
||||||
runs-on: host
|
|
||||||
timeout-minutes: 30
|
|
||||||
needs: [ pdf-tools-git-prep ]
|
|
||||||
if: |
|
|
||||||
always()
|
|
||||||
steps:
|
|
||||||
- run: (cd /root/pdf-web-toolkit && docker build -t pdf-web-toolkit .)
|
|
||||||
|
|
||||||
# Deploy
|
|
||||||
dpy-pdf-tools:
|
|
||||||
# name: Deploy pdf-web-toolkit
|
|
||||||
runs-on: host
|
|
||||||
timeout-minutes: 10
|
|
||||||
needs: [ bld-pdf-tools ]
|
|
||||||
if: |
|
|
||||||
always()
|
|
||||||
steps:
|
|
||||||
- run: docker stop pdf-web-toolkit || true
|
|
||||||
- run: docker rm pdf-web-toolkit || true
|
|
||||||
- run: docker run -d --name pdf-web-toolkit -p 8002:8000 -i -t pdf-web-toolkit
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
name: PR-Build
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- '!master' # excludes master
|
|
||||||
- '!main' # excludes main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
# Environment/Checks
|
|
||||||
pr-check:
|
|
||||||
name: PR Build
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
timeout-minutes: 30
|
|
||||||
steps:
|
|
||||||
# Make sure docker is available
|
|
||||||
- run: docker ps
|
|
||||||
# Falback to clone the repo at the current commit, need to get commit or branch name
|
|
||||||
# https://stackoverflow.com/questions/58886293/getting-current-branch-and-commit-hash-in-github-action#58886352
|
|
||||||
# - run: (cd /root && git clone https://git.tidoni-sky.ddnss.de/tidoni/pdf-web-toolkit.git)
|
|
||||||
# - run: (cd /root/pdf-web-toolkit && docker build -t pdf-web-toolkit .)
|
|
||||||
- run: docker build -t pdf-web-toolkit .
|
|
||||||
- run: podman run --rm --name pdf-web-toolkit pdf-web-toolkit pytest
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
FROM python:3.11.14-slim
|
FROM python:3.11-slim
|
||||||
|
# FROM python:3.11.3
|
||||||
|
|
||||||
# set the working directory
|
# set the working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
flask==3.1.2
|
flask
|
||||||
gunicorn==23.0.0
|
gunicorn
|
||||||
pypdf==5.8.0
|
pypdf
|
||||||
|
|
||||||
# For testing
|
# For testing
|
||||||
pytest==8.3.2
|
pytest
|
||||||
Loading…
Add table
Add a link
Reference in a new issue