Docker & CI

This commit is contained in:
Piotr Dec 2025-04-30 13:50:07 +02:00
parent bce46422fc
commit f2b2c05a29
No known key found for this signature in database
GPG key ID: D3B5A5D0150D147A
2 changed files with 17 additions and 3 deletions

13
.woodpecker/latest.yaml Normal file
View file

@ -0,0 +1,13 @@
steps:
- name: build
image: woodpeckerci/plugin-docker-buildx
settings:
platforms: linux/amd64
repo: git.ztsh.eu/slack-exporter
registry: git.ztsh.eu
tags: latest
username: stawros
password:
from_secret: git_pat
when:
- event: [tag, push, manual]

View file

@ -3,10 +3,11 @@ LABEL authors="stawros"
RUN mkdir /app RUN mkdir /app
COPY slack-exporter/requirements.txt /app/ COPY requirements.txt /app/
COPY slack-exporter/exporter.py /app/ COPY exporter_ng.py /app/
COPY tui.py /app/
RUN pip3 uninstall urllib3 RUN pip3 uninstall urllib3
RUN pip3 install -r /app/requirements.txt RUN pip3 install -r /app/requirements.txt
CMD ["python3", "/app/exporter.py"] CMD ["python3", "/app/tui.py"]