Skip to content

chore(cd): cd 오타 수정 #13

chore(cd): cd 오타 수정

chore(cd): cd 오타 수정 #13

Workflow file for this run

name: deploy
on:
push:
paths:
- 'main-server/**'
- 'logging-server/**'
branches: ['master']
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: dorny/[email protected]
id: changes
with:
filters: |
main:
- 'main-server/**'
logging:
- 'logging-server/**'
- name: deploy main-server
if: steps.changes.outputs.front == 'true'
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_SSH_KEY }}
passphrase: ${{ secrets.SERVER_PASSPHRASE }}
port: ${{ secrets.SERVER_SSH_PORT }}
script: |
sh ~/script/deploy-main-server.sh
- name: deploy logging-server
if: steps.changes.outputs.back == 'true'
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_SSH_KEY }}
passphrase: ${{ secrets.SERVER_PASSPHRASE }}
port: ${{ secrets.SERVER_SSH_PORT }}
script: |
sh ~/script/deploy-logging-server.sh