Skip to content

Commit

Permalink
chore(#84): ssh-action을 사용한 core 서버 배포
Browse files Browse the repository at this point in the history
  • Loading branch information
ghdcksgml1 committed Oct 23, 2023
1 parent 04ddfe7 commit ed95104
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/CI_main_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,16 @@ jobs:
run: ./gradlew jib

deployment:
name: docker 배포
name: docker deployment
needs: build # depends on
runs-on: self-hosted

steps:
- name: docker-compose 배포 스크립트
run: ${{ secrets.DOCKER_COMPOSE_DEPLOYMENT_SCRIPT }}
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: ${{ secrets.DOCKER_COMPOSE_DEPLOYMENT_SCRIPT }} # docker-compose 배포 스크립트 실행

0 comments on commit ed95104

Please sign in to comment.