-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8097974
commit b3604fb
Showing
3 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Deploy to Linode via SSH | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # Change to your main branch name | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' # Clone submodules | ||
|
||
- name: Update apt cache on the runner and install dependencies | ||
run: sudo apt update && sudo apt install sshpass | ||
|
||
- name: Set up SSH | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: copy file via ssh password | ||
uses: appleboy/scp-action@master | ||
with: | ||
host: ${{ secrets.LINODE_IP }} | ||
username: ${{ secrets.USER }} | ||
key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
port: 22 | ||
source: ./* | ||
target: ${{ secrets.PATH_TO_SAVE }} | ||
|
||
- name: execute container | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.LINODE_IP }} | ||
username: ${{ secrets.USER }} | ||
key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
port: 22 | ||
script: | | ||
cd ${{ secrets.PATH_TO_SAVE }} | ||
docker-compose pull && docker-compose up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule refuapp-backend
updated
10 files
+2 −0 | .gitignore | |
+3 −0 | main.py | |
+1 −1 | models/refuges.py | |
+51 −0 | routers/refuges.py | |
+87 −5 | routers/users.py | |
+6 −2 | schemas/refuge.py | |
+12 −0 | schemas/user.py | |
+56 −0 | services/refuges.py | |
+41 −3 | services/user.py | |
+ − | static/no-photo.png |