Update .gitlab-ci.yml file

This commit is contained in:
Late Night Defender 2023-07-30 17:58:13 +00:00
parent 1ddd34cca7
commit 383c7d38a3

View file

@ -12,6 +12,8 @@ remove-old-services: # This job runs in the build stage, which runs first.
apply-version-tag:
stage: prepare
script:
- echo $CI_PROJECT_DIR
- echo ${CI_PROJECT_DIR}
- sed -i "s/DATE/$(date -I)/g" ${CI_PROJECT_DIR}/src/views/Setting.vue
- sed -i "s/VERSION/$(git log -1 --oneline | awk '{print $1}')/g" ${CI_PROJECT_DIR}/src/views/Setting.vue