mirror of
https://gitlab.com/little-lines/backend.git
synced 2024-11-27 05:04:08 +00:00
auto update date and version string
This commit is contained in:
parent
a50364eaec
commit
05c8212b75
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue