Skip to content
Snippets Groups Projects
Verified Commit 2d31f8f6 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(images): Rework release process for postfix and dovecot

parent a7a64856
No related branches found
No related tags found
No related merge requests found
Pipeline #19495 passed
release=0.4.1
VERSION 0.7
container:
container-internal:
FROM ../mirror+alpine
ARG registry=quay.io/shivering-isles/dovecot
COPY .release ./
ARG tag=$(awk -F'=' '$1 == "release" {print $2}' .release)
ARG latest=false
# Update base system
RUN apk add --no-cache ca-certificates
RUN update-ca-certificates
......@@ -48,6 +43,13 @@ container:
EXPOSE 24 110 143 993 995 4190 12345
ENTRYPOINT ["/usr/sbin/dovecot", "-F"]
container:
FROM +container-internal
ARG registry=quay.io/shivering-isles/dovecot
ARG tag=$(dovecot --version | awk '{print $1}')
ARG latest=false
DO ../.utils/+LABEL --image=dovecot --version=main
IF [ $latest = "true" ]
SAVE IMAGE --push ${registry}:latest
......
release=3.8.5
......@@ -9,13 +9,8 @@ dhparams:
RUN openssl dhparam -out ./postfix_dhparams.pem 2048 2>/dev/null
SAVE ARTIFACT ./postfix_dhparams.pem
container:
container-internal:
FROM ../mirror+alpine
ARG registry=quay.io/shivering-isles/postfix
COPY .release ./
ARG tag=$(awk -F'=' '$1 == "release" {print $2}' .release)
ARG latest=false
# Install pre-requirements
RUN apk add --no-cache ca-certificates
RUN update-ca-certificates
......@@ -28,6 +23,12 @@ container:
EXPOSE 25 465 587
ENTRYPOINT [ "postfix", "start-fg"]
container:
FROM +container-internal
ARG registry=quay.io/shivering-isles/postfix
ARG tag=$(postconf mail_version | sed -e 's/mail_version = //')
ARG latest=false
DO ../.utils/+LABEL --image=postfix --version=main
IF [ $latest = "true" ]
SAVE IMAGE --push ${registry}:latest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment