Compare commits

...

41 Commits

Author SHA1 Message Date
9e6284029a Schedule
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 14:05:28 +01:00
4740333f98 Checkout
All checks were successful
Deploy Container Image to Registry / docker (push) Successful in 1m7s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 13:58:58 +01:00
272f336341 Debug
Some checks failed
Deploy Container Image to Registry / docker (push) Failing after 20s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 13:57:54 +01:00
0145bfd0b0 File
Some checks failed
Deploy Container Image to Registry / docker (push) Failing after 19s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 13:53:12 +01:00
b351a59b31 Context
Some checks failed
Deploy Container Image to Registry / docker (push) Failing after 19s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 13:48:32 +01:00
bebd42a52e Fix
Some checks failed
Deploy Container Image to Registry / docker (push) Failing after 19s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 13:38:18 +01:00
1372673b4b Fix
Some checks failed
Deploy Container Image to Registry / docker (push) Failing after 21s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 13:31:27 +01:00
1eb936a449 Test
Some checks failed
Deploy Container Image to Registry / docker (push) Failing after 45s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 13:28:43 +01:00
284cda6aab Change REG
All checks were successful
Deploy Container Image to Registry / docker (push) Successful in 16s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 13:15:09 +01:00
7ba5cd4e75 Extend Workflow
Some checks failed
Deploy Container Image to Registry / docker (push) Failing after 1m18s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 13:13:26 +01:00
189b83236d Finaler Task
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 11:29:13 +01:00
7ec62fb748 Fix Chars
All checks were successful
Deploy Container Image to Registry / build-image (push) Successful in 43s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 10:53:09 +01:00
35a4865f43 Remove Login
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 47s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 10:51:48 +01:00
98d44f026f Quotes
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 46s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 10:49:36 +01:00
388bb3d683 DEBUG
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 37s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 10:44:25 +01:00
37935dfb6d Printf
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 36s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 10:42:40 +01:00
4799f9a8a4 Fix
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 36s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 10:37:22 +01:00
810d59b24b Remove Cat
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 36s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 10:36:10 +01:00
477a2f96b7 DEBUG
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 36s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 10:09:39 +01:00
00d272daef ADd User
All checks were successful
Deploy Container Image to Registry / build-image (push) Successful in 36s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 10:07:56 +01:00
b659a49156 Fix Var
All checks were successful
Deploy Container Image to Registry / build-image (push) Successful in 36s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 10:05:58 +01:00
a2b5d9865d Push
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 38s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 10:02:05 +01:00
ad1a38a930 Extend Things
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 38s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 09:54:42 +01:00
246a60ac48 Remove Tagging
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 47s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 09:14:45 +01:00
c122e25afc CI_PROJECT_NAME
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 35s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 00:58:37 +01:00
de76eedd6d PW
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 35s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 00:48:11 +01:00
01b3e4e349 stdin
All checks were successful
Deploy Container Image to Registry / build-image (push) Successful in 38s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 00:46:36 +01:00
d38cd1d96f PW
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 35s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 00:37:53 +01:00
8d63fd964a Output Images
All checks were successful
Deploy Container Image to Registry / build-image (push) Successful in 34s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 00:36:16 +01:00
5bd5cad59f Fix
All checks were successful
Deploy Container Image to Registry / build-image (push) Successful in 36s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 00:31:55 +01:00
cb157d941c Fix Build Tags
All checks were successful
Deploy Container Image to Registry / build-image (push) Successful in 43s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 00:27:31 +01:00
68a63d01fc Login
All checks were successful
Deploy Container Image to Registry / build-image (push) Successful in 37s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-19 16:43:20 +01:00
2ea467a25c Fix Image Name
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 35s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-19 16:38:42 +01:00
8d0e72862e Image Name
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 36s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-19 16:37:09 +01:00
2b76484e31 Fix Imae Name
Some checks failed
Deploy Container Image to Registry / build-image (push) Has been cancelled
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-19 16:36:37 +01:00
c8dcf9a80c Fix Image Name
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 36s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-19 16:31:00 +01:00
1fcf56bf58 Fix
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 7s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-19 16:28:58 +01:00
74042dacd5 Fix
Some checks failed
Deploy Container Image to Registry / build-image (push) Failing after 35s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-19 16:23:59 +01:00
5a323847e3 Upload
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-19 16:23:46 +01:00
27993d0a4b Build
All checks were successful
Deploy Container Image to Registry / build-image (push) Successful in 35s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-19 16:07:45 +01:00
6de14d2dc6 First Shos
All checks were successful
Deploy Container Image to Registry / build-image (push) Successful in 1m57s
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-19 15:57:35 +01:00
4 changed files with 91 additions and 9 deletions

View File

@ -0,0 +1,31 @@
name: Deploy Container Image to Registry
on:
push:
branches:
- main
jobs:
build-image:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build Image
run: |
echo "[***] Build hook running"
cd ${{ gitea.workspace }}/StableV2/
VERSION=$(git ls-remote --tags -q https://github.com/rspamd/rspamd | sed -n "s/^[[:xdigit:]]\{40\}[[:blank:]]refs\/tags\/\([0-9]\{1\}\.[0-9]\{1,2\}\($\|\.[0-9]\{1,2\}$\)\)/\1/p" | sort --version-sort | tail -1)
docker build \
--build-arg VERSION=${VERSION} \
--build-arg COMMIT=$(git ls-remote --tags -q https://github.com/rspamd/rspamd | sed -n "s/^\([[:xdigit:]]\{40\}\)[[:blank:]]refs\/tags\/${VERSION}^{}$/\1/p" | xargs git rev-parse --short) \
--build-arg BRANCH=$(git rev-parse --abbrev-ref HEAD) \
--build-arg DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
-t ${{ vars.DOCKER_REPO }}/gnilebein/${{ vars.IMAGE_NAME }} -t ${{ vars.DOCKER_REPO }}/gnilebein/${{ vars.IMAGE_NAME }}:$VERSION .
- name: Push Image
run: |
echo '${{ vars.DOCKER_AUTH_CONFIG }}' > ~/.docker/config.json
cat ~/.docker/config.json
VERSION=$(git ls-remote --tags -q https://github.com/rspamd/rspamd | sed -n "s/^[[:xdigit:]]\{40\}[[:blank:]]refs\/tags\/\([0-9]\{1\}\.[0-9]\{1,2\}\($\|\.[0-9]\{1,2\}$\)\)/\1/p" | sort --version-sort | tail -1)
docker push ${{ vars.DOCKER_REPO }}/gnilebein/${{ vars.IMAGE_NAME }}
docker push ${{ vars.DOCKER_REPO }}/gnilebein/${{ vars.IMAGE_NAME }}:${VERSION}

View File

@ -0,0 +1,49 @@
name: Deploy Container Image to Registry
on:
schedule:
- cron: 0,10,15 * * * *
push:
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: gitea.gnilebein.de
username: ${{ gitea.repository_owner }}
password: ${{ secrets.REG_GITEA_PASSWORD }}
- name: Get Meta
id: meta
run: |
echo VERSION=$(git ls-remote --tags -q https://github.com/rspamd/rspamd | sed -n "s/^[[:xdigit:]]\{40\}[[:blank:]]refs\/tags\/\([0-9]\{1\}\.[0-9]\{1,2\}\($\|\.[0-9]\{1,2\}$\)\)/\1/p" | sort --version-sort | tail -1) | tee -a $GITHUB_OUTPUT
echo IMAGE_CREATED=$(date -u +"%Y-%m-%dT%H:%M:%SZ") | tee -a $GITHUB_OUTPUT
- run: pwd
- run: ls -lah
- name: Build and push
uses: docker/build-push-action@v6
with:
context: ./StableV2
file: StableV2/Dockerfile
pull: false
push: true
no-cache: true
build-args: |
VERSION=${{ steps.meta.outputs.VERSION }}
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
tags: |
${{ vars.DOCKER_REPO }}/${{ gitea.repository_owner }}/${{ vars.IMAGE_NAME }}
${{ vars.DOCKER_REPO }}/${{ gitea.repository_owner }}/${{ vars.IMAGE_NAME }}:${{ steps.meta.outputs.VERSION }}

5
.vscode/settings.json vendored Normal file
View File

@ -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"
}
}

View File

@ -13,12 +13,12 @@ ENV DEBIAN_FRONTEND=noninteractive
LABEL org.label-schema.name="Rspamd" \ LABEL org.label-schema.name="Rspamd" \
org.label-schema.description="Rspamd Spam Filter - STABLE" \ 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.url="https://rspamd.com" \
org.label-schema.vendor="gnilebein" \ org.label-schema.vendor="gnilebein" \
org.label-schema.schema-version="1.0" \ org.label-schema.schema-version="1.0" \
org.label-schema.version=$VERSION \ 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.vcs-ref=$COMMIT \
org.label-schema.build-date=$DATE 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 COPY docker-entrypoint.sh /docker-entrypoint.sh
# # Keep database and configuration persistent # # Keep database and configuration persistent
# VOLUME /etc/rspamd/local.d VOLUME /etc/rspamd/local.d
# VOLUME /etc/rspamd/override.d VOLUME /etc/rspamd/override.d
# VOLUME /etc/rspamd/custom VOLUME /etc/rspamd/custom
# VOLUME /var/lib/rspamd VOLUME /var/lib/rspamd
# Port 11334 is for web frontend
# Port 11332 is for milter
# Port 11333 is for worker
EXPOSE 11332 11333 11334 EXPOSE 11332 11333 11334
# Healtcheck if Rspamd is returning stats # Healtcheck if Rspamd is returning stats