Skip to content

Commit

Permalink
[#7] ci: ssh port 변수사용
Browse files Browse the repository at this point in the history
  • Loading branch information
NaMinhyeok committed Jan 20, 2025
1 parent f1b09da commit 079e587
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ env:
NCP_SERVER_HOST: ${{ secrets.NCP_SERVER_HOST }}
NCP_SERVER_USERNAME: ${{ secrets.NCP_SERVER_USERNAME }}
NCP_SERVER_PASSWORD: ${{ secrets.NCP_SERVER_PASSWORD }}
NCP_SERVER_PORT: ${{ secrets.NCP_SERVER_PORT }}
SSH_PORT: 22
BUILD_NUMBER: ${{ github.sha }}-${{ github.run_id }}

Expand Down Expand Up @@ -93,7 +92,7 @@ jobs:
host: ${{ env.NCP_SERVER_HOST}}
username: ${{ env.NCP_SERVER_USERNAME }}
password: ${{ env.NCP_SERVER_PASSWORD }}
port: ${{ env.NCP_SERVER_PORT }}
port: ${{ env.SSH_PORT }}
source: "docker-compose.yml,.env"
target: "~/"

Expand All @@ -104,7 +103,7 @@ jobs:
host: ${{ env.NCP_SERVER_HOST }}
username: ${{ env.NCP_SERVER_USERNAME }}
password: ${{ env.NCP_SERVER_PASSWORD }}
port: ${{ env.NCP_SERVER_PORT }}
port: ${{ env.SSH_PORT }}
script: |
cd ~
docker-compose pull
Expand Down

0 comments on commit 079e587

Please sign in to comment.