Compare commits

...

31 Commits

Author SHA1 Message Date
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
3 changed files with 42 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}

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" \
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