Initial commit
This commit is contained in:
commit
add5ac221b
5 changed files with 87 additions and 0 deletions
22
.drone-manifest.yml
Normal file
22
.drone-manifest.yml
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
image: nemunaire/opendkim:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
|
||||||
|
{{#if build.tags}}
|
||||||
|
tags:
|
||||||
|
{{#each build.tags}}
|
||||||
|
- {{this}}
|
||||||
|
{{/each}}
|
||||||
|
{{/if}}
|
||||||
|
manifests:
|
||||||
|
- image: nemunaire/opendkim:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
|
||||||
|
platform:
|
||||||
|
architecture: amd64
|
||||||
|
os: linux
|
||||||
|
- image: nemunaire/opendkim:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
|
||||||
|
platform:
|
||||||
|
architecture: arm64
|
||||||
|
os: linux
|
||||||
|
variant: v8
|
||||||
|
- image: nemunaire/opendkim:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm
|
||||||
|
platform:
|
||||||
|
architecture: arm
|
||||||
|
os: linux
|
||||||
|
variant: v7
|
||||||
36
.woodpecker.yaml
Normal file
36
.woodpecker.yaml
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
matrix:
|
||||||
|
platform:
|
||||||
|
- linux/amd64
|
||||||
|
- linux/arm64
|
||||||
|
|
||||||
|
labels:
|
||||||
|
platform: ${platform}
|
||||||
|
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- tag
|
||||||
|
- cron
|
||||||
|
|
||||||
|
steps:
|
||||||
|
build-container:
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
repo: nemunaire/opendkim
|
||||||
|
auto_tag: true
|
||||||
|
auto_tag_suffix: "${platform%/*}-${platform#*/}"
|
||||||
|
|
||||||
|
publish-manifest:
|
||||||
|
image: plugins/manifest
|
||||||
|
settings:
|
||||||
|
auto_tag: true
|
||||||
|
ignore_missing: true
|
||||||
|
spec: .drone-manifest.yml
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
FROM alpine:3
|
||||||
|
|
||||||
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
|
CMD ["/usr/sbin/opendkim", "-A", "-f", "-x", "/etc/opendkim/opendkim.conf"]
|
||||||
|
|
||||||
|
COPY entrypoint.sh /docker-entrypoint.sh
|
||||||
|
COPY opendkim.conf /etc/opendkim/opendkim.conf
|
||||||
|
|
||||||
|
RUN apk --no-cache add opendkim
|
||||||
7
entrypoint.sh
Executable file
7
entrypoint.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
ln -sf /proc/1/fd/1 /var/log/messages
|
||||||
|
|
||||||
|
syslogd
|
||||||
|
|
||||||
|
exec $@
|
||||||
13
opendkim.conf
Normal file
13
opendkim.conf
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
Syslog yes
|
||||||
|
SyslogSuccess yes
|
||||||
|
LogResults yes
|
||||||
|
LogWhy yes
|
||||||
|
Canonicalization relaxed/simple
|
||||||
|
UMask 002
|
||||||
|
Socket unix:/var/run/opendkim/opendkim.sock
|
||||||
|
UserID opendkim:opendkim
|
||||||
|
|
||||||
|
KeyTable refile:/etc/opendkim/KeyTable
|
||||||
|
SigningTable refile:/etc/opendkim/SigningTable
|
||||||
|
ExternalIgnoreList refile:/etc/opendkim/TrustedHosts
|
||||||
|
InternalHosts refile:/etc/opendkim/TrustedHosts
|
||||||
Loading…
Add table
Add a link
Reference in a new issue