From f2b2c05a29964526eb8893eb01c7bc4fad48783e Mon Sep 17 00:00:00 2001 From: Piotr Dec Date: Wed, 30 Apr 2025 13:50:07 +0200 Subject: [PATCH] Docker & CI --- .woodpecker/latest.yaml | 13 +++++++++++++ Dockerfile | 7 ++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .woodpecker/latest.yaml diff --git a/.woodpecker/latest.yaml b/.woodpecker/latest.yaml new file mode 100644 index 0000000..c5ae2a3 --- /dev/null +++ b/.woodpecker/latest.yaml @@ -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] diff --git a/Dockerfile b/Dockerfile index b265373..944b773 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,11 @@ LABEL authors="stawros" RUN mkdir /app -COPY slack-exporter/requirements.txt /app/ -COPY slack-exporter/exporter.py /app/ +COPY requirements.txt /app/ +COPY exporter_ng.py /app/ +COPY tui.py /app/ RUN pip3 uninstall urllib3 RUN pip3 install -r /app/requirements.txt -CMD ["python3", "/app/exporter.py"] +CMD ["python3", "/app/tui.py"]