diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1371be0..859d73c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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.