auto update date and version string

This commit is contained in:
Late Night Defender 2023-11-12 22:39:40 +07:00
parent a50364eaec
commit 05c8212b75

View file

@ -14,6 +14,8 @@ remove-old-services:
container-build:
stage: build
script:
- sed -i "s/DATE/$(date -I)/g" ${CI_PROJECT_DIR}/server.js
- sed -i "s/VERSION/$(git log -1 --oneline | awk '{print $1}')/g" ${CI_PROJECT_DIR}/server.js
- podman build -t little-lines-backend .
container-deploy: