-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1d8988
commit 9b7ed09
Showing
1 changed file
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||