Compare commits
6 Commits
master
...
0f3c1f55c8
| Author | SHA1 | Date | |
|---|---|---|---|
| 0f3c1f55c8 | |||
| 6f23ed5a8d | |||
| 12e18e674e | |||
| ceb1deff74 | |||
| b58fc0ab55 | |||
| 1d843aaa61 |
40
.drone.yml
Normal file
40
.drone.yml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: build-multiarch-images
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: make-tags
|
||||||
|
image: node
|
||||||
|
commands:
|
||||||
|
- echo -n "${DRONE_COMMIT_SHA:0:10}, latest" > .tags
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
image: thegeeklab/drone-docker-buildx
|
||||||
|
privileged: true
|
||||||
|
settings:
|
||||||
|
registry: git.mrmeeb.stream
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
repo: git.mrmeeb.stream/mrmeeb/postfix
|
||||||
|
platforms:
|
||||||
|
- linux/arm64
|
||||||
|
- linux/amd64
|
||||||
|
|
||||||
|
- name: notify
|
||||||
|
image: plugins/slack
|
||||||
|
settings:
|
||||||
|
webhook:
|
||||||
|
from_secret: slack_webhook
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- pull_request
|
||||||
@ -1,52 +0,0 @@
|
|||||||
name: Build Main Image
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'master'
|
|
||||||
|
|
||||||
env:
|
|
||||||
FULL_TAG: git.mrmeeb.stream/mrmeeb/postfix:latest
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
"Build Image":
|
|
||||||
runs-on: [ubuntu-docker-latest, linux/amd64]
|
|
||||||
steps:
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
- name: Login to Gitea Container Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: git.mrmeeb.stream
|
|
||||||
username: ${{ env.GITHUB_ACTOR }}
|
|
||||||
password: ${{ secrets.GTCR_TOKEN }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
push: true
|
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
tags: ${{ env.FULL_TAG }}
|
|
||||||
provenance: false
|
|
||||||
- name: Notify on failure
|
|
||||||
uses: rjstone/discord-webhook-notify@v1
|
|
||||||
if: failure()
|
|
||||||
with:
|
|
||||||
severity: error
|
|
||||||
details: Build failed!
|
|
||||||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
username: Gitea
|
|
||||||
avatarUrl: ${{ vars.RUNNER_ICON_URL }}
|
|
||||||
"Notify":
|
|
||||||
runs-on: [ubuntu-docker-latest, linux/amd64]
|
|
||||||
needs: ["Build Image"]
|
|
||||||
steps:
|
|
||||||
- name: Notify of success
|
|
||||||
uses: rjstone/discord-webhook-notify@v1
|
|
||||||
if: success()
|
|
||||||
with:
|
|
||||||
severity: info
|
|
||||||
details: Build succeeded!
|
|
||||||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
username: Gitea
|
|
||||||
avatarUrl: ${{ vars.RUNNER_ICON_URL }}
|
|
||||||
@ -1,46 +0,0 @@
|
|||||||
name: Test Pull Request
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- 'master'
|
|
||||||
|
|
||||||
env:
|
|
||||||
FULL_TAG: git.mrmeeb.stream/mrmeeb/postfix:develop
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
"Build Image":
|
|
||||||
runs-on: [ubuntu-docker-latest, linux/amd64]
|
|
||||||
steps:
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
- name: Build
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
push: false
|
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
tags: ${{ env.FULL_TAG }}
|
|
||||||
provenance: false
|
|
||||||
- name: Notify on failure
|
|
||||||
uses: rjstone/discord-webhook-notify@v1
|
|
||||||
if: failure()
|
|
||||||
with:
|
|
||||||
severity: error
|
|
||||||
details: Build failed!
|
|
||||||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
username: Gitea
|
|
||||||
avatarUrl: ${{ vars.RUNNER_ICON_URL }}
|
|
||||||
"Notify":
|
|
||||||
runs-on: [ubuntu-docker-latest, linux/amd64]
|
|
||||||
needs: ["Build Image"]
|
|
||||||
steps:
|
|
||||||
- name: Notify of success
|
|
||||||
uses: rjstone/discord-webhook-notify@v1
|
|
||||||
if: success()
|
|
||||||
with:
|
|
||||||
severity: info
|
|
||||||
details: Build succeeded!
|
|
||||||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
username: Gitea
|
|
||||||
avatarUrl: ${{ vars.RUNNER_ICON_URL }}
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.22
|
FROM alpine:3.17
|
||||||
|
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk add bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx \
|
apk add bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx \
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
# Postfix Docker
|
# Postfix Docker
|
||||||
|
|
||||||
|
[](https://drone.mrmeeb.stream/MrMeeb/postfix-docker)
|
||||||
|
|
||||||
Dockerised Postfix for fully-dockerised SimpleLogin deployment
|
Dockerised Postfix for fully-dockerised SimpleLogin deployment
|
||||||
@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": [":automergeMinor", ":automergePr", ":automergeRequireAllStatusChecks", ":dependencyDashboard", ":disableRateLimiting", ":rebaseStalePrs"],
|
|
||||||
"baseBranches": ["master"],
|
|
||||||
"major": {
|
|
||||||
"dependencyDashboardApproval": true
|
|
||||||
},
|
|
||||||
"minimumReleaseAge": "7 days"
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user