From 990f4cdf75ffbb0eb146d517c7bad165c4e4edfe Mon Sep 17 00:00:00 2001 From: Suyeonkim07 Date: Sun, 17 Jul 2022 18:13:22 +0900 Subject: [PATCH 1/6] =?UTF-8?q?cd=ED=8C=8C=EC=9D=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..5a9b275 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,33 @@ +name: Deploy CI + +on: + push: + branches: [ "develop" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup Java JDK + uses: actions/setup-java@v3.4.1 + with: + distribution: 'corretto' + java-version: '11' + + - name: build jar + run: ./gradlew bootJar + + - name: move jar + run: scp -P 10122 delideli-0.0.1-SNAPSHOT.jar root@101.101.166.158:~/ + + - 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 \ No newline at end of file From 43ba0d5341e5a18672aeb0abb52a13190688a681 Mon Sep 17 00:00:00 2001 From: Suyeonkim07 Date: Sun, 17 Jul 2022 19:24:32 +0900 Subject: [PATCH 2/6] =?UTF-8?q?cd=20=EB=AC=B8=EB=B2=95=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5a9b275..006309f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,8 +1,9 @@ -name: Deploy CI +name: Deploy on: push: branches: [ "develop" ] + workflow_dispatch: jobs: build: @@ -13,9 +14,9 @@ jobs: - name: Setup Java JDK uses: actions/setup-java@v3.4.1 - with: - distribution: 'corretto' - java-version: '11' + with: + distribution: 'corretto' + java-version: '11' - name: build jar run: ./gradlew bootJar @@ -25,9 +26,9 @@ jobs: - 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 \ No newline at end of file + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USERNAME }} + password: ${{ secrets.SSH_PASSWORD }} + port: ${{ secrets.SSH_PORT }} + script: bash run_delideli.sh \ No newline at end of file From 85251a7c011f62c839daeae2e1efdb1891b2564a Mon Sep 17 00:00:00 2001 From: Suyeonkim07 Date: Sun, 17 Jul 2022 19:27:36 +0900 Subject: [PATCH 3/6] =?UTF-8?q?cd=20=ED=8C=8C=EC=9D=BC=20=EC=97=85?= =?UTF-8?q?=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 006309f..0abe789 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,7 +3,7 @@ name: Deploy on: push: branches: [ "develop" ] - workflow_dispatch: + workflow_dispatch: {} jobs: build: From 5d215fd000b85c8ff6fb156e022c16be8fcdc8fb Mon Sep 17 00:00:00 2001 From: Suyeonkim07 Date: Mon, 18 Jul 2022 13:38:02 +0900 Subject: [PATCH 4/6] =?UTF-8?q?CD=ED=8C=8C=EC=9D=BC=20=EC=A3=BC=EC=84=9D?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0abe789..a70b12d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,29 +1,33 @@ +# 워크플로우 이름 지정함 name: Deploy -on: +# 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/setup-java@v3.4.1 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 root@101.101.166.158:~/ - + #파일 옮긴 서버에 접속 - name: connect to server uses: appleboy/ssh-action@master with: From 82ffe30996ff68115c3ab423ab29620a9bbfb544 Mon Sep 17 00:00:00 2001 From: Suyeonkim07 Date: Sat, 23 Jul 2022 14:55:52 +0900 Subject: [PATCH 5/6] =?UTF-8?q?#91=20=ED=94=BC=EB=93=9C=EB=B0=B1=EB=B0=98?= =?UTF-8?q?=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a70b12d..5259283 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,6 +2,7 @@ name: Deploy # develop브랜치에 push될 때마다 워크플로우가 실행됨 + on: push: branches: [ "develop" ] #수동으로 트리거되게 함 @@ -26,7 +27,7 @@ jobs: run: ./gradlew bootJar #jar파일을 다른 서버에 옮김 - name: move jar - run: scp -P 10122 delideli-0.0.1-SNAPSHOT.jar root@101.101.166.158:~/ + run: scp -P ${{secrets.SSH_UPLOAD_PORT}} delideli-0.0.1-SNAPSHOT.jar ${{secrets.SSH_UPLOAD_USER}}@${{secrets.SSH_UPLOAD_IP}}:~/ #파일 옮긴 서버에 접속 - name: connect to server uses: appleboy/ssh-action@master From cc5e02ab2998928008f0fdb051966ade3d23c286 Mon Sep 17 00:00:00 2001 From: kim su yeon <67328695+Suyeonkim07@users.noreply.github.com> Date: Sat, 23 Jul 2022 14:58:02 +0900 Subject: [PATCH 6/6] =?UTF-8?q?#91=20=EB=AC=B8=EB=B2=95=EC=98=A4=EB=A5=98?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5259283..b630347 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,7 +2,7 @@ name: Deploy # develop브랜치에 push될 때마다 워크플로우가 실행됨 - on: +on: push: branches: [ "develop" ] #수동으로 트리거되게 함 @@ -36,4 +36,4 @@ jobs: username: ${{ secrets.SSH_USERNAME }} password: ${{ secrets.SSH_PASSWORD }} port: ${{ secrets.SSH_PORT }} - script: bash run_delideli.sh \ No newline at end of file + script: bash run_delideli.sh