commit a48861eef7ec9ab23a0fba5324141a51fa596601 Author: Pierre-Olivier Mercier Date: Fri Jul 18 16:37:28 2025 +0200 Initial commit diff --git a/.drone-manifest.yml b/.drone-manifest.yml new file mode 100644 index 0000000..472e1f5 --- /dev/null +++ b/.drone-manifest.yml @@ -0,0 +1,22 @@ +image: nemunaire/postfix:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} +{{#if build.tags}} +tags: +{{#each build.tags}} + - {{this}} +{{/each}} +{{/if}} +manifests: + - image: nemunaire/postfix:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 + platform: + architecture: amd64 + os: linux + - image: nemunaire/postfix:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64 + platform: + architecture: arm64 + os: linux + variant: v8 + - image: nemunaire/postfix:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm + platform: + architecture: arm + os: linux + variant: v7 diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..5f5ae0e --- /dev/null +++ b/.woodpecker.yaml @@ -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/postfix + 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 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0f7526a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM alpine:3 + +CMD ["/usr/sbin/postfix", "-c", "/etc/postfix", "start-fg"] + +RUN apk --no-cache add postfix postfix-ldap