Skip to content

Commit

Permalink
docs: improve release process
Browse files Browse the repository at this point in the history
  • Loading branch information
cmur2 committed Apr 16, 2021
1 parent 6aa8c10 commit ad01f9a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM alpine:3.13.5

EXPOSE 5353 8080

ARG DYNDNSD_VERSION=3.4.1
ARG DYNDNSD_VERSION

RUN apk --no-cache add openssl ca-certificates && \
apk --no-cache add ruby ruby-etc ruby-io-console ruby-json ruby-webrick && \
Expand Down
13 changes: 13 additions & 0 deletions upgrade-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -eux

sed -i "s/$1/$2/g" lib/dyndnsd/version.rb

release_date=$(LC_ALL=en_US.utf8 date +"%B %-d, %Y")

if grep "## $2 (" CHANGELOG.md; then
true
elif grep "## $2" CHANGELOG.md; then
sed -i "s/## $2/## $2 ($release_date)/g" CHANGELOG.md
else
echo "## $2 ($release_date)" >> CHANGELOG.md
fi

0 comments on commit ad01f9a

Please sign in to comment.