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