mirror of
https://gitlab.com/little-lines/backend.git
synced 2024-11-23 13:16:51 +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:
|
container-build:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
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 .
|
- podman build -t little-lines-backend .
|
||||||
|
|
||||||
container-deploy:
|
container-deploy:
|
||||||
|
|
Loading…
Reference in a new issue