1 parent
6a7f405bd4
commit
ea902c15a4
1 file changed
+15
@@ -0,0 +1,15 @@
|
|||||||
|
name: deploy
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: host
|
||||||
|
steps:
|
||||||
|
- name: Обновить код и пересобрать контейнер
|
||||||
|
run: |
|
||||||
|
cd /opt/straders-site
|
||||||
|
git pull --ff-only
|
||||||
|
docker compose up -d --build
|
||||||
|
docker image prune -f
|
||||||
Reference in new issue
Block a user