File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88jobs :
99 build :
1010 runs-on : ubuntu-latest
11- environment : HOSTINGER
1211 steps :
1312 - name : Checkout repository
1413 uses : actions/checkout@v3
@@ -24,24 +23,23 @@ jobs:
2423 with :
2524 context : .
2625 push : true
27- tags : ${{secrets.DOCKER_USERNAME}}/novaren-inys-backend :latest
26+ tags : ${{secrets.DOCKER_USERNAME}}/${{github.event.repository.name}} :latest
2827 deploy :
2928 runs-on : ubuntu-latest
3029 needs : build
31- environment : HOSTINGER
3230 steps :
3331 - name : Checkout repository
3432 uses : actions/checkout@v3
3533
3634 - name : Deploy on VPS
3735 uses : appleboy/ssh-action@v0.1.10
3836 with :
39- host : ${{ secrets.HOST }}
40- username : ${{ secrets.USERNAME }}
41- password : ${{ secrets.PASSWORD }}
42- port : ${{ secrets.PORT }}
37+ host : ${{ secrets.VPS_1_HOST_IP }}
38+ username : ${{ secrets.VPS_1_HOST_USERNAME }}
39+ password : ${{ secrets.VPS_1_HOST_PASSWORD }}
40+ port : ${{ secrets.VPS_1_HOST_PORT }}
4341 script : |
44- cd /media/inys-api
42+ cd /media/${{github.event.repository.name}}
4543 docker compose pull
4644 docker compose down
4745 docker compose up -d
You can’t perform that action at this time.
0 commit comments