mirror of
https://gitlab.com/little-lines/frontend.git
synced 2024-11-24 19:06:53 +00:00
make deployment process auto replace old containers
This commit is contained in:
parent
7221586818
commit
e0879c51f8
1 changed files with 2 additions and 2 deletions
|
@ -14,12 +14,12 @@ container-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:$(git log -1 --oneline | awk '{print $1}') .
|
||||
- podman build -t little-lines .
|
||||
|
||||
container-deploy:
|
||||
stage: deploy
|
||||
script:
|
||||
- podman run --name little-lines -p 8081:80 -d little-lines:$(git log -1 --oneline | awk '{print $1}')
|
||||
- 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