Update .gitlab-ci.yml file

This commit is contained in:
Late Night Defender 2023-07-30 17:49:48 +00:00
parent cbbfc9e841
commit 1ddd34cca7

View file

@ -12,8 +12,8 @@ remove-old-services: # This job runs in the build stage, which runs first.
apply-version-tag:
stage: prepare
script:
- sed -i "s/DATE/$(date -I)/g" src/views/Setting.vue
- sed -i "s/VERSION/$(git log -1 --oneline | awk '{print $1}')/g" src/views/Setting.vue
- 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
build-job: # This job runs in the test stage.
stage: build # It only starts when the job in the build stage completes successfully.