Skip to content

Commit 752f882

Browse files
committed
ci: Change to organization
1 parent 755ca4d commit 752f882

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
jobs:
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

0 commit comments

Comments
 (0)