(FIX): Fixed action, not using ssh anymore
This commit is contained in:
parent
030b67844f
commit
7fee0d0a58
18
.github/workflows/deploy.yml
vendored
18
.github/workflows/deploy.yml
vendored
@ -36,21 +36,3 @@ jobs:
|
|||||||
file: ./backend/Dockerfile
|
file: ./backend/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: azpect3120/file.gophernest.backend:latest
|
tags: azpect3120/file.gophernest.backend:latest
|
||||||
|
|
||||||
- name: Deploy to server
|
|
||||||
uses: appleboy/ssh-action@v1.2.1
|
|
||||||
with:
|
|
||||||
host: ${{ secrets.SERVER_HOST }}
|
|
||||||
username: ${{ secrets.SERVER_USERNAME }}
|
|
||||||
password: ${{ secrets.SERVER_PASSWORD }}
|
|
||||||
port: 22
|
|
||||||
script: |
|
|
||||||
docker-compose -f /home/azpect/Applications/file.gophernest/docker-compose.yml down
|
|
||||||
docker-compose -f /home/azpect/Applications/file.gophernest/docker-compose.yml pull
|
|
||||||
docker-compose -f /home/azpect/Applications/file.gophernest/docker-compose.yml up -d
|
|
||||||
env:
|
|
||||||
FILE_GOPHERNEST_USER: ${{ secrets.FILE_GOPHERNEST_USER }}
|
|
||||||
FILE_GOPHERNEST_PASSWORD: ${{ secrets.FILE_GOPHERNEST_PASSWORD }}
|
|
||||||
FILE_GOPHERNEST_JWT_SECRET: ${{ secrets.FILE_GOPHERNEST_JWT_SECRET }}
|
|
||||||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
Reference in New Issue
Block a user