mirror of
https://gitlab.com/little-lines/frontend.git
synced 2024-11-22 12:16:53 +00:00
Update .gitlab-ci.yml file
This commit is contained in:
parent
383c7d38a3
commit
f31f118d59
1 changed files with 2 additions and 8 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue