Skip to content

Commit

Permalink
Update main_merge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
marinesnow34 authored Nov 23, 2023
1 parent a1d8988 commit 9b7ed09
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/main_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,27 @@ jobs:
- name: remove plain.jar
run: rm -rf build/libs/*plain.jar

- name: file copy
uses: actions/upload-artifact@v3
# - name: file copy
# uses: actions/upload-artifact@v3
# with:
# name: libs
# path: build/libs
- name: file upload
uses: appleboy/[email protected]
with:
name: libs
path: build/libs
username: ${{ secrets.MAIN_USERNAME }}
host: ${{ secrets.MAIN_HOST }}
key: ${{ secrets.MAIN_SSH_KEY }}
source: "build/libs/*.jar"
target: "/home/ubuntu/docker/java/test/jar"
- name: SSH and deploy
uses: appleboy/[email protected]
with:
host: ${{ secrets.MAIN_HOST }}
username: ${{ secrets.MAIN_USERNAME }}
key: ${{ secrets.MAIN_SSH_KEY }}
timeout: 40s # 30초 기본
script: |
docker-compose build readyvery
docker-compose up -d readyvery

0 comments on commit 9b7ed09

Please sign in to comment.