mirror of
https://gitlab.com/little-lines/frontend.git
synced 2024-11-24 21:26:52 +00:00
24 lines
670 B
YAML
24 lines
670 B
YAML
stages:
|
|
- prepare
|
|
- build
|
|
- deploy
|
|
|
|
remove-old-services:
|
|
stage: prepare
|
|
script:
|
|
- systemctl --user stop little-lines-frontend
|
|
- podman rm --force little-lines-frontend
|
|
- cp little-lines-frontend.container ~/.config/containers/systemd
|
|
- systemctl --user daemon-reload
|
|
|
|
container-build:
|
|
stage: build
|
|
script:
|
|
- sed -i "s/DATE/$(date -I)/g" ${CI_PROJECT_DIR}/src/views/About.vue
|
|
- sed -i "s/VERSION/$(git log -1 --oneline | awk '{print $1}')/g" ${CI_PROJECT_DIR}/src/views/About.vue
|
|
- podman build -t little-lines-frontend .
|
|
|
|
container-deploy:
|
|
stage: deploy
|
|
script:
|
|
- systemctl --user start little-lines-frontend
|