-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from SMWU-POCHAK/develop
1.0.3 버전 배포
- Loading branch information
Showing
68 changed files
with
1,637 additions
and
393 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
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
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,22 @@ | ||
--- | ||
name: Refactor request | ||
about: 기존 기능을 개선하거나 리팩토링합니다 | ||
title: "[Refactor]" | ||
labels: "\U0001F527 refactor" | ||
assignees: '' | ||
|
||
--- | ||
|
||
## 📍 개선한 기능 | ||
- 개선한 기능에 대한 설명 | ||
|
||
## 🛠 개선 작업 내용 | ||
- [ ] todo1 | ||
- [ ] todo2 | ||
- [ ] todo3 | ||
|
||
## 📢 추가 의논 사항 | ||
- 추가적으로 의논할 사항이나 발생한 에러에 대한 설명 | ||
|
||
## 🚨 주의 사항 | ||
- 구현하며 발견한 주의 사항이나 **꼭 확인했으면 하는 로직**에 대한 설명 |
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
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,67 @@ | ||
name: dev server | ||
|
||
on: | ||
push: | ||
branches: [ develop ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: "corretto" | ||
|
||
- name: Set up COMMON file | ||
run: echo "${{ secrets.COMMON }}" > ./src/main/resources/application-COMMON.properties | ||
shell: bash | ||
|
||
- name: Set up DEV file | ||
run: echo "${{ secrets.DEV }}" > ./src/main/resources/application-DEV.properties | ||
shell: bash | ||
|
||
- name: Set up Firebase Key file | ||
run: echo "${{ secrets.FIREBASE_KEY }}" > ./src/main/resources/static/firebase-adminsdk.json | ||
shell: bash | ||
|
||
- name: Set up Apple Key file | ||
run: echo "${{ secrets.APPLE_AUTH_KEY }}" > ./src/main/resources/static/AuthKey_ZJ4VQZNW7D.p8 | ||
shell: bash | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x ./gradlew | ||
shell: bash | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew clean build | ||
shell: bash | ||
|
||
- name: Login to DockerHub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_DEV_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_DEV_PWD }} | ||
|
||
- name: Build and push Docker images | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: Dockerfile | ||
push: true | ||
tags: ${{ secrets.DOCKERHUB_DEV_USERNAME }}/pochak-dev | ||
build-args: | | ||
SPRING_PROFILES_ACTIVE=DEV | ||
- name: Execute remote ssh & Deploy Dev server | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.SSH_DEV_HOST }} | ||
username: ${{ secrets.SSH_USERNAME }} | ||
key: ${{ secrets.SSH_KEY }} | ||
port: ${{ secrets.SSH_PORT }} | ||
script: sudo sh deploy.sh |
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,67 @@ | ||
name: prod server | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: "corretto" | ||
|
||
- name: Set up COMMON file | ||
run: echo "${{ secrets.COMMON }}" > ./src/main/resources/application-COMMON.properties | ||
shell: bash | ||
|
||
- name: Set up PROD file | ||
run: echo "${{ secrets.PROD }}" > ./src/main/resources/application-PROD.properties | ||
shell: bash | ||
|
||
- name: Set up Firebase Key file | ||
run: echo "${{ secrets.FIREBASE_KEY }}" > ./src/main/resources/static/firebase-adminsdk.json | ||
shell: bash | ||
|
||
- name: Set up Apple Key file | ||
run: echo "${{ secrets.APPLE_AUTH_KEY }}" > ./src/main/resources/static/AuthKey_ZJ4VQZNW7D.p8 | ||
shell: bash | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x ./gradlew | ||
shell: bash | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew clean build | ||
shell: bash | ||
|
||
- name: Login to DockerHub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_PROD_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PROD_PWD }} | ||
|
||
- name: Build and push Docker images | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: Dockerfile | ||
push: true | ||
tags: ${{ secrets.DOCKERHUB_PROD_USERNAME }}/pochak-prod | ||
build-args: | | ||
SPRING_PROFILES_ACTIVE=PROD | ||
- name: Execute remote ssh & Deploy Prod server | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.SSH_PROD_HOST }} | ||
username: ${{ secrets.SSH_USERNAME }} | ||
key: ${{ secrets.SSH_KEY }} | ||
port: ${{ secrets.SSH_PORT }} | ||
script: sudo sh deploy.sh |
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
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
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
Oops, something went wrong.