From 3f2d6b0c80b3401809466dd736db3ceb57b88cbe Mon Sep 17 00:00:00 2001 From: Artjom Kurapov Date: Thu, 24 Aug 2023 01:51:24 +0300 Subject: [PATCH] update deploy workflow --- .github/workflows/deploy.yml | 7 ++++++- restart.sh | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b93254a..9d2514d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 \ No newline at end of file + working-directory: /www/weather/ + run: ./restart.sh \ No newline at end of file diff --git a/restart.sh b/restart.sh index 29e841c..2ab94df 100644 --- a/restart.sh +++ b/restart.sh @@ -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 \ No newline at end of file