Skip to content

Commit

Permalink
feat(cd): pull workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vladyoslav committed Jun 22, 2024
1 parent 3d3ad50 commit e4b3c33
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/pull.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Pull the git repository on the server
on:
push:
branches:
- main
jobs:
pull:
runs-on: ubuntu-latest
steps:
- name: Pull the git repository with ssh
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
script: git --work-tree=$WORK_TREE --git-dir=$GIT_DIR pull
env:
WORK_TREE: ${{ vars.PROJECT_DIR }}
GIT_DIR: ${{ vars.PROJECT_DIR }}/.git
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
make init
```

**Don't forget to change values in .env**
### Don't forget to change values in .env

## Commands

Expand Down

0 comments on commit e4b3c33

Please sign in to comment.