Update .gitlab-ci.yml file

This commit is contained in:
Late Night Defender 2023-07-30 18:02:59 +00:00
parent 383c7d38a3
commit f31f118d59

View file

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