Compare commits
15 Commits
fd868b525b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9731bb5be6 | ||
|
|
2735b18856 | ||
|
|
f62382f3c6 | ||
|
|
a061cd6304 | ||
|
|
ef9aa2d54c | ||
|
|
c53524aa26 | ||
| d3a7440091 | |||
| 61b83b85d4 | |||
|
|
72d26206fa | ||
| 5e690d52e2 | |||
|
|
c57dcd24bf | ||
| be9aea31d9 | |||
|
|
d6123836cf | ||
| 246dc298e6 | |||
|
|
509e7f472d |
@@ -1,10 +1,11 @@
|
|||||||
name: Deploy Container Image to Registry
|
name: Deploy Container Image to Registry
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: 0 1 * * *
|
- cron: 0 1 * * 1
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker-build-stable:
|
docker-build-stable:
|
||||||
@@ -13,8 +14,11 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up QEMU
|
# - name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
# uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Ausgabe der Variable gitea.actor
|
||||||
|
run: echo "Gitea Actor = ${{ gitea.actor }}"
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
@@ -23,15 +27,16 @@ jobs:
|
|||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: gitea.gnilebein.de
|
registry: gitea.gnilebein.de
|
||||||
username: ${{ gitea.repository_owner }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.REG_GITEA_PASSWORD }}
|
password: ${{ secrets.PAT }}
|
||||||
|
|
||||||
- name: Get Meta
|
- name: Get Meta
|
||||||
id: meta
|
id: meta
|
||||||
run: |
|
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 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
|
echo IMAGE_CREATED=$(date -u +"%Y-%m-%dT%H:%M:%SZ") | tee -a $GITHUB_OUTPUT
|
||||||
VERSION=${{ steps.meta.outputs.VERSION }}
|
IMAGE_CREATED=${{ steps.meta.outputs.VERSION }}
|
||||||
|
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
@@ -42,6 +47,7 @@ jobs:
|
|||||||
pull: false
|
pull: false
|
||||||
push: true
|
push: true
|
||||||
no-cache: true
|
no-cache: true
|
||||||
|
provenance: false
|
||||||
build-args: |
|
build-args: |
|
||||||
VERSION=${{ steps.meta.outputs.VERSION }}
|
VERSION=${{ steps.meta.outputs.VERSION }}
|
||||||
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
||||||
@@ -55,8 +61,8 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up QEMU
|
# - name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
# uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
@@ -65,8 +71,8 @@ jobs:
|
|||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: gitea.gnilebein.de
|
registry: gitea.gnilebein.de
|
||||||
username: ${{ gitea.repository_owner }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.REG_GITEA_PASSWORD }}
|
password: ${{ secrets.PAT }}
|
||||||
|
|
||||||
- name: Get Meta
|
- name: Get Meta
|
||||||
id: meta
|
id: meta
|
||||||
@@ -83,6 +89,7 @@ jobs:
|
|||||||
pull: false
|
pull: false
|
||||||
push: true
|
push: true
|
||||||
no-cache: true
|
no-cache: true
|
||||||
|
provenance: false
|
||||||
build-args: |
|
build-args: |
|
||||||
VERSION=${{ steps.meta.outputs.VERSION }}
|
VERSION=${{ steps.meta.outputs.VERSION }}
|
||||||
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
||||||
|
|||||||
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM debian:stable-slim
|
FROM debian:oldstable-slim
|
||||||
LABEL maintainer="gnilebein - <patrick@niebel.ing>"
|
LABEL maintainer="gnilebein - <patrick@niebel.ing>"
|
||||||
|
|
||||||
# Setup Labels
|
# Setup Labels
|
||||||
@@ -16,7 +16,7 @@ LABEL org.label-schema.name="Rspamd" \
|
|||||||
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://gitea.gnilebein.de/gnilebein/Docker-rspamd" \
|
org.label-schema.vcs-url="https://gitea.gnilebein.de/gnilebein/Docker-rspamd" \
|
||||||
org.label-schema.build-date=$DATE
|
org.label-schema.build-date=$IMAGE_CREATED
|
||||||
|
|
||||||
# Install Rspamd
|
# Install Rspamd
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM debian:stable-slim
|
FROM debian:oldstable-slim
|
||||||
LABEL maintainer="gnilebein - <patrick@niebel.ing>"
|
LABEL maintainer="gnilebein - <patrick@niebel.ing>"
|
||||||
|
|
||||||
# Setup Labels
|
# Setup Labels
|
||||||
@@ -16,7 +16,7 @@ LABEL org.label-schema.name="Rspamd" \
|
|||||||
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://gitea.gnilebein.de/gnilebein/Docker-rspamd" \
|
org.label-schema.vcs-url="https://gitea.gnilebein.de/gnilebein/Docker-rspamd" \
|
||||||
org.label-schema.build-date=$DATE
|
org.label-schema.build-date=$IMAGE_CREATED
|
||||||
|
|
||||||
# Install Rspamd
|
# Install Rspamd
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
|
|||||||
Reference in New Issue
Block a user