Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Commit

Permalink
cd: github action workflow 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
toothlessdev committed Jan 13, 2024
1 parent 971ef9e commit 32547f4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ on:
- release

jobs:
deployment:
name: Deploy
deploy:
runs-on: ubuntu-latest

steps:
- name: executing remote ssh commands using password
- name: Checkout code
uses: actions/checkout@v2

- name: SSH and execute commands
uses: appleboy/[email protected]
with:
host: ${{secrets.DEPLOY_SERVER_HOST}}
username: ${{secrets.DEPLOY_SERVER_USERNAME}}
password: "${{secrets.DEPLOY_SERVER_PASSWORD}}"
port: ${{secrets.DEPLOY_SERVER_PORT}}
script_stop: true
host: ${{ secrets.DEPLOY_SERVER_HOST }}
username: ${{ secrets.DEPLOY_SERVER_USERNAME }}
password: ${{ secrets.DEPLOY_SERVER_PASSWORD }}
port: ${{ secrets.DEPLOY_SERVER_HOST }}
script: |
cd stocodi-web
git fetch
git pull origin release
echo "${{secrets.DEPLOY_SERVER_PASSWORD}}" | sudo -S -k ./deploy.sh

0 comments on commit 32547f4

Please sign in to comment.