From 6de14d2dc60d8d618f24bab6d2dbe26153d720e1 Mon Sep 17 00:00:00 2001 From: Patrick Niebeling Date: Tue, 19 Nov 2024 15:57:35 +0100 Subject: [PATCH] First Shos Signed-off-by: Patrick Niebeling --- .gitea/workflows/deploy.yaml | 14 ++++++++++++++ .vscode/settings.json | 5 +++++ StableV2/Dockerfile | 15 ++++++--------- 3 files changed, 25 insertions(+), 9 deletions(-) create mode 100644 .gitea/workflows/deploy.yaml create mode 100644 .vscode/settings.json diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..4b45b43 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,14 @@ +name: Deploy Container Image to Registry +run-name: Deploy to RaspberryPi +on: [push] + +jobs: + build-image: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Run Build Hook + run: | + cd ${{ gitea.workspace }}/StableV2/ + bash hooks/build \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d4fe162 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "yaml.schemas": { + "https://json.schemastore.org/github-workflow.json": "file:///c%3A/Users/patrick.niebeling/Documents/gitRepos%20-%20privat/Docker-rspamd/.gitea/workflows/deploy.yaml" + } +} \ No newline at end of file diff --git a/StableV2/Dockerfile b/StableV2/Dockerfile index ba38408..c7a1af4 100644 --- a/StableV2/Dockerfile +++ b/StableV2/Dockerfile @@ -13,12 +13,12 @@ ENV DEBIAN_FRONTEND=noninteractive LABEL org.label-schema.name="Rspamd" \ org.label-schema.description="Rspamd Spam Filter - STABLE" \ - org.label-schema.usage="https://hub.docker.com/r/gnilebein/rspamd/" \ + org.label-schema.usage="https://gitea.gnilebein.de/gnilebein/-/packages/container/docker-rspamd/latest" \ org.label-schema.url="https://rspamd.com" \ org.label-schema.vendor="gnilebein" \ org.label-schema.schema-version="1.0" \ org.label-schema.version=$VERSION \ - org.label-schema.vcs-url="https://github.com/rspamd/rspamd/" \ + org.label-schema.vcs-url="https://gitea.gnilebein.de/gnilebein/Docker-rspamd" \ org.label-schema.vcs-ref=$COMMIT \ org.label-schema.build-date=$DATE @@ -56,14 +56,11 @@ COPY set_worker_password.sh /set_worker_password.sh COPY docker-entrypoint.sh /docker-entrypoint.sh # # Keep database and configuration persistent -# VOLUME /etc/rspamd/local.d -# VOLUME /etc/rspamd/override.d -# VOLUME /etc/rspamd/custom -# VOLUME /var/lib/rspamd +VOLUME /etc/rspamd/local.d +VOLUME /etc/rspamd/override.d +VOLUME /etc/rspamd/custom +VOLUME /var/lib/rspamd -# Port 11334 is for web frontend -# Port 11332 is for milter -# Port 11333 is for worker EXPOSE 11332 11333 11334 # Healtcheck if Rspamd is returning stats