autoversion

This commit is contained in:
Kameron Kenny 2024-10-28 16:38:38 -04:00
parent 40882546c0
commit 3a23ed0208
No known key found for this signature in database
GPG Key ID: E5006629839D2276
2 changed files with 7 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.bak

6
autoversion.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
v=$(date "+%Y%m%d%H%M%S")
sed -i.bak "s/^LABEL version.*/LABEL version=\"$v\"/" "Dockerfile"
sed -i.bak "s/\/tlp\/syslog-ng:.*/\/tlp\/syslog-ng:$v/" "docker-compose.yml"