1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2024-12-21 14:54:22 +01:00

docs: improve release process

This commit is contained in:
cn 2021-04-16 23:16:58 +02:00
parent 6aa8c10ae0
commit ad01f9a9dd
2 changed files with 14 additions and 1 deletions

View File

@ -2,7 +2,7 @@ FROM alpine:3.13.5
EXPOSE 5353 8080 EXPOSE 5353 8080
ARG DYNDNSD_VERSION=3.4.1 ARG DYNDNSD_VERSION
RUN apk --no-cache add openssl ca-certificates && \ RUN apk --no-cache add openssl ca-certificates && \
apk --no-cache add ruby ruby-etc ruby-io-console ruby-json ruby-webrick && \ apk --no-cache add ruby ruby-etc ruby-io-console ruby-json ruby-webrick && \

13
upgrade-version.sh Executable file
View File

@ -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