mirror of
https://gitlab.com/little-lines/frontend.git
synced 2024-11-22 05:56:51 +00:00
Merge branch 'main' of https://gitlab.com/openKMITL/micromobility-navigation
This commit is contained in:
commit
74da8d9230
1 changed files with 25 additions and 0 deletions
25
.gitlab-ci.yml
Normal file
25
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
stages:
|
||||
- prepare
|
||||
- build
|
||||
- deploy
|
||||
|
||||
remove-old-services:
|
||||
stage: prepare
|
||||
script:
|
||||
- podman stop little-lines
|
||||
- podman rm little-lines
|
||||
|
||||
container-build:
|
||||
stage: build
|
||||
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 .
|
||||
|
||||
container-deploy:
|
||||
stage: deploy
|
||||
script:
|
||||
- podman run --name little-lines -p 8081:80 -d little-lines
|
||||
- podman generate systemd little-lines > ~/.config/systemd/user/little-lines.service
|
||||
- systemctl --user daemon-reload
|
||||
- systemctl --user enable little-lines
|
Loading…
Reference in a new issue