Skip to content

Commit

Permalink
update deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tot-ra committed Aug 23, 2023
1 parent 94247bd commit 3f2d6b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@ jobs:
deploy:
runs-on: self-hosted
steps:
- name: pull
working-directory: /www/weather/
run: git pull

- name: restart
run: sh /www/weather/restart.sh
working-directory: /www/weather/
run: ./restart.sh
2 changes: 1 addition & 1 deletion restart.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
cd /www/weather/
docker-compose down
COMPOSE_PROJECT_NAME=gratheon docker-compose down
COMPOSE_PROJECT_NAME=gratheon docker-compose up -d

0 comments on commit 3f2d6b0

Please sign in to comment.