diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5bafbeb..1e95d6f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,17 +9,11 @@ remove-old-services: # This job runs in the build stage, which runs first. - podman stop little-lines - podman rm little-lines -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 - build-job: # This job runs in the test stage. stage: build # It only starts when the job in the build stage completes successfully. script: + - 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 - podman build -t little-lines:$(git log -1 --oneline | awk '{print $1}') . deploy-job: # This job runs in the deploy stage.