added tag message in release

This commit is contained in:
Jonas Forsberg 2023-04-13 16:19:02 +02:00
parent 0b80fb9a4a
commit d3f6710bff
2 changed files with 20 additions and 19 deletions

View File

@ -19,7 +19,8 @@ build:
clean: clean:
podman image rm ${REPO}/${IMAGENAME}:$(VERSION) podman image rm ${REPO}/${IMAGENAME}:$(VERSION)
release: guard clean build release: guard build
git tag v$(VERSION) $(eval TMP_MESSAGE := $(shell podman run --rm -it ${REPO}/${IMAGENAME}:$(VERSION) /usr/sbin/dnsmasq --version))
git tag -a v$(VERSION) -m "${TMP_MESSAGE}"
git push origin v$(VERSION) git push origin v$(VERSION)
podman push --creds $(USERNAME):$(PASSWORD) ${REPO}/${IMAGENAME}:$(VERSION) podman push --creds $(USERNAME):$(PASSWORD) ${REPO}/${IMAGENAME}:$(VERSION)

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [[ "$1" == "start" ]]; then
if [[ ! -f /config/dnsmasq.conf ]]; then if [[ ! -f /config/dnsmasq.conf ]]; then
echo "* Creating /config/dnsmasq.conf" echo "* Creating /config/dnsmasq.conf"
sed 's/^conf-dir=\/etc\//conf-dir=\/config\//g' /etc/dnsmasq.conf > /config/dnsmasq.conf sed 's/^conf-dir=\/etc\//conf-dir=\/config\//g' /etc/dnsmasq.conf > /config/dnsmasq.conf
@ -17,8 +19,6 @@ if [[ ! -d /config/dnsmasq.d ]]; then
echo "* Creating /config/dnsmasq.d" echo "* Creating /config/dnsmasq.d"
mkdir /config/dnsmasq.d mkdir /config/dnsmasq.d
fi fi
if [[ "$1" == "start" ]]; then
/usr/sbin/dnsmasq \ /usr/sbin/dnsmasq \
--conf-fil=/config/dnsmasq.conf \ --conf-fil=/config/dnsmasq.conf \
--no-daemon --no-hosts \ --no-daemon --no-hosts \