-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#91] CD파일 추가 #92
Open
suyeon9707
wants to merge
6
commits into
develop
Choose a base branch
from
feature91
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[#91] CD파일 추가 #92
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# 워크플로우 이름 지정함 | ||
name: Deploy | ||
|
||
# develop브랜치에 push될 때마다 워크플로우가 실행됨 | ||
push: | ||
branches: [ "develop" ] | ||
#수동으로 트리거되게 함 | ||
workflow_dispatch: {} | ||
|
||
#워크플로우의 작업을 설정함 | ||
jobs: | ||
build: | ||
#최신의 우분투 서버에서 실행됨 | ||
runs-on: ubuntu-latest | ||
#delideli코드를 깃허브에서 제공해주는 서버에 내려받고 특정브랜치로 전환해줌 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
#JDK설치함 (아마존에서 무료로 제공하는 jdk버전 11설치) | ||
- name: Setup Java JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'corretto' | ||
java-version: '11' | ||
#jar파일 생성함 | ||
- name: build jar | ||
run: ./gradlew bootJar | ||
#jar파일을 다른 서버에 옮김 | ||
- name: move jar | ||
run: scp -P 10122 delideli-0.0.1-SNAPSHOT.jar [email protected]:~/ | ||
#파일 옮긴 서버에 접속 | ||
- name: connect to server | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.SSH_HOST }} | ||
username: ${{ secrets.SSH_USERNAME }} | ||
password: ${{ secrets.SSH_PASSWORD }} | ||
port: ${{ secrets.SSH_PORT }} | ||
script: bash run_delideli.sh |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
서버 아이피와 포트를 노출시키지 않는 방법도 있을까요??