Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Infrastructure GitOps
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shivering-Isles
Infrastructure GitOps
Commits
2d31f8f6
Verified
Commit
2d31f8f6
authored
1 year ago
by
Sheogorath
Browse files
Options
Downloads
Patches
Plain Diff
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
1 year ago
Stage: build
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
images/dovecot/.release
+0
-1
0 additions, 1 deletion
images/dovecot/.release
images/dovecot/Earthfile
+8
-6
8 additions, 6 deletions
images/dovecot/Earthfile
images/postfix/.release
+0
-1
0 additions, 1 deletion
images/postfix/.release
images/postfix/Earthfile
+7
-6
7 additions, 6 deletions
images/postfix/Earthfile
with
15 additions
and
14 deletions
images/dovecot/.release
deleted
100644 → 0
+
0
−
1
View file @
a7a64856
release=0.4.1
This diff is collapsed.
Click to expand it.
images/dovecot/Earthfile
+
8
−
6
View file @
2d31f8f6
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
...
...
This diff is collapsed.
Click to expand it.
images/postfix/.release
deleted
100644 → 0
+
0
−
1
View file @
a7a64856
release=3.8.5
This diff is collapsed.
Click to expand it.
images/postfix/Earthfile
+
7
−
6
View file @
2d31f8f6
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment