Skip to content

Commit

Permalink
Add VERSION & Update README.md (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Mar 9, 2021
1 parent 0df7a6f commit 745b7af
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@ jobs:
--tag zixia/simple-mail-forwarder:latest \
--push \
.
-
name: 'Is A Publish Branch: Push README to Dockerhub'
if: steps.check-branch.outputs.match == 'true'
uses: christian-korneck/update-container-description-action@v1
env:
DOCKER_USER: zixia
DOCKER_PASS: ${{ secrets.DOCKER_PERSONAL_ACCESS_TOKEN }}
with:
destination_container_repo: zixia/simple-mail-forwarder
provider: dockerhub
short_description: 'Simplest and Smallest Email Forward Service'
readme_file: 'README.md'
-
name: Is Not A Publish Branch
if: steps.check-branch.outputs.match != 'true'
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ COPY entrypoint.sh /entrypoint.sh
RUN bash -n /entrypoint.sh && chmod a+x /entrypoint.sh

COPY BANNER /app/
COPY VERSION /app/
COPY test /app/test

COPY .git/logs/HEAD /app/GIT_LOG
Expand Down
12 changes: 6 additions & 6 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARGV=$@

function print_help {
cat <<EOF
Docker SMF - Simple Mail Forwarder
Docker SMF v$(head -1 /app/VERSION) - Simple Mail Forwarder
===============================================================================
To create a new mail server for your domain,
you could use the following commands:
Expand Down Expand Up @@ -238,7 +238,7 @@ function start_postfix {

echo "OpenDKIM: this TXT record for ${virtualDomain} should be present:"
cat /var/db/dkim/${virtualDomain}/default.txt

done

echo "Configuring DKIM key settings in /etc/opendkim/opendkim.conf"
Expand All @@ -247,16 +247,16 @@ function start_postfix {
sed -e '/Domain/ s/^#*/#/' -i /etc/opendkim/opendkim.conf

if ! grep -q -s "KeyTable" /etc/opendkim/opendkim.conf; then
echo "KeyTable /etc/opendkim/KeyTable" >> /etc/opendkim/opendkim.conf;
echo "KeyTable /etc/opendkim/KeyTable" >> /etc/opendkim/opendkim.conf;
fi
if ! grep -q -s "SigningTable" /etc/opendkim/opendkim.conf; then
echo "SigningTable /etc/opendkim/SigningTable" >> /etc/opendkim/opendkim.conf;
echo "SigningTable /etc/opendkim/SigningTable" >> /etc/opendkim/opendkim.conf;
fi
if ! grep -q -s "ExternalIgnoreList" /etc/opendkim/opendkim.conf; then
echo "ExternalIgnoreList /etc/opendkim/TrustedHosts" >> /etc/opendkim/opendkim.conf;
echo "ExternalIgnoreList /etc/opendkim/TrustedHosts" >> /etc/opendkim/opendkim.conf;
fi
if ! grep -q -s "InternalHosts" /etc/opendkim/opendkim.conf; then
echo "InternalHosts /etc/opendkim/TrustedHosts" >> /etc/opendkim/opendkim.conf
echo "InternalHosts /etc/opendkim/TrustedHosts" >> /etc/opendkim/opendkim.conf
fi

echo "Postfix main.cf custom entries from SMF_POSTFIXMAIN_"
Expand Down

0 comments on commit 745b7af

Please sign in to comment.