Skip to content

Commit 0f5fdd8

Browse files
authored
Merge pull request #80 from Team-SWAcademy/release/#1.0.0
v1.0.0 Release to main
2 parents 3e50c8e + 8d4c47a commit 0f5fdd8

120 files changed

Lines changed: 4912 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
files:
2+
"/sbin/appstart":
3+
mode: "000755"
4+
owner: webapp
5+
group: webapp
6+
content: |
7+
#!/usr/bin/env bash
8+
JAR_PATH=/var/app/current/application.jar
9+
10+
# run app
11+
killalljava
12+
java -Dfile.encoding=UTF-8 -jar $JAR_PATH --spring.profiles.active=dev
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
commands:
2+
set_time_zone:
3+
command: ln -f -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
files:
2+
"/sbin/appstart":
3+
mode: "000755"
4+
owner: webapp
5+
group: webapp
6+
content: |
7+
#!/usr/bin/env bash
8+
JAR_PATH=/var/app/current/application.jar
9+
10+
# run app
11+
killalljava
12+
java -Dfile.encoding=UTF-8 -jar $JAR_PATH --spring.profiles.active=prod
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
commands:
2+
set_time_zone:
3+
command: ln -f -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime

.github/ISSUE_TEMPLATE/✨feat.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: "✨Feat"
3+
about: feat
4+
title: "[FEAT]"
5+
labels: "✨feature"
6+
assignees: ''
7+
8+
---
9+
10+
:exclamation:**이슈내용**
11+
---
12+
content
13+
14+
:star:**상세 내용**
15+
---
16+
- content
17+
18+
:white_check_mark:**체크리스트**
19+
---
20+
- [ ] content
21+
22+
:mag_right:**레퍼런스**
23+
---
24+

.github/ISSUE_TEMPLATE/🆘help.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: "\U0001F198Help"
3+
about: I got trouble, help me please
4+
title: "[HELP]"
5+
labels: help wanted
6+
assignees: ''
7+
8+
---
9+
10+
:question:**이슈 내용**
11+
---
12+
content
13+
14+
:mag_right:**경로**
15+
---
16+
content
17+
18+
:sparkles:**의도한 결과**
19+
---
20+
content
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: "\U0001F41BBug report"
3+
about: Create a report to help us improve
4+
title: "[BUG]"
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
:rage:**오류 설명**
11+
A clear and concise description of what the bug is.
12+
13+
---
14+
:mag_right:**오류 발생 상황**
15+
Steps to reproduce the behavior:
16+
1. Go to '...'
17+
2. Click on '....'
18+
3. Scroll down to '....'
19+
4. See error
20+
21+
---
22+
:grin:**의도한 결과**
23+
A clear and concise description of what you expected to happen.
24+
25+
---
26+
:fireworks:**스크린샷**
27+
If applicable, add screenshots to help explain your problem.

.github/ISSUE_TEMPLATE/🚑fix.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: "\U0001F691Fix"
3+
about: I fix bug
4+
title: "[FIX]"
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
:mag_right:**기존 문제점 및 해결 방안**
11+
---
12+
content
13+
14+
:wrench:**수정한 내용**
15+
---
16+
content
17+
18+
:fireworks:**스크린샷**
19+
---
20+
content

.github/workflows/develop_dev.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Swacademy Dev CI/CD
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'develop'
12+
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Set up JDK 17
19+
uses: actions/setup-java@v3
20+
with:
21+
java-version: 17
22+
distribution: 'adopt'
23+
24+
- name: Grant execute permission for gradlew
25+
run: chmod +x ./gradlew
26+
shell: bash
27+
28+
29+
- name: Build with Gradle
30+
run: ./gradlew clean build -x test
31+
shell: bash
32+
33+
34+
- name: Get current time
35+
uses: 1466587594/get-current-time@v2
36+
id: current-time
37+
with:
38+
format: YYYY-MM-DDTHH-mm-ss
39+
utcOffset: "+09:00"
40+
41+
- name: Show Current Time
42+
run: echo "CurrentTime=$"
43+
shell: bash
44+
45+
46+
47+
48+
- name: Generate deployment package
49+
run: |
50+
mkdir -p deploy
51+
cp build/libs/*.jar deploy/application.jar
52+
cp Procfile deploy/Procfile
53+
cp -r .ebextensions-dev deploy/.ebextensions
54+
cp -r .platform deploy/.platform
55+
cd deploy && zip -r deploy.zip .
56+
57+
58+
- name: Debug Beanstalk Deploy
59+
run: |
60+
echo "AWS_ACTION_ACCESS_KEY_ID: ${{ secrets.AWS_ACTION_ACCESS_KEY_ID }}"
61+
echo "AWS_ACTION_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACTION_SECRET_ACCESS_KEY }}"
62+
63+
- name: Beanstalk Deploy
64+
uses: einaregilsson/beanstalk-deploy@v20
65+
with:
66+
aws_access_key: ${{ secrets.AWS_ACTION_ACCESS_KEY_ID }}
67+
aws_secret_key: ${{ secrets.AWS_ACTION_SECRET_ACCESS_KEY }}
68+
application_name: swacademy-dev
69+
environment_name: Swacademy-dev-env
70+
version_label: github-action-${{ steps.current-time.outputs.formattedTime }}
71+
region: ap-northeast-2
72+
deployment_package: deploy/deploy.zip
73+
wait_for_deployment: false
74+
75+

.github/workflows/develop_prod.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Swacademy Prod CI/CD
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
12+
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Set up JDK 17
19+
uses: actions/setup-java@v3
20+
with:
21+
java-version: 17
22+
distribution: 'adopt'
23+
24+
- name: Grant execute permission for gradlew
25+
run: chmod +x ./gradlew
26+
shell: bash
27+
28+
29+
- name: Build with Gradle
30+
run: ./gradlew clean build -x test
31+
shell: bash
32+
33+
34+
- name: Get current time
35+
uses: 1466587594/get-current-time@v2
36+
id: current-time
37+
with:
38+
format: YYYY-MM-DDTHH-mm-ss
39+
utcOffset: "+09:00"
40+
41+
- name: Show Current Time
42+
run: echo "CurrentTime=$"
43+
shell: bash
44+
45+
46+
47+
48+
- name: Generate deployment package
49+
run: |
50+
mkdir -p deploy
51+
cp build/libs/*.jar deploy/application.jar
52+
cp Procfile deploy/Procfile
53+
cp -r .ebextensions-prod deploy/.ebextensions
54+
cp -r .platform deploy/.platform
55+
cd deploy && zip -r deploy.zip .
56+
57+
58+
- name: Debug Beanstalk Deploy
59+
run: |
60+
echo "AWS_ACTION_ACCESS_KEY_ID: ${{ secrets.AWS_ACTION_ACCESS_KEY_ID }}"
61+
echo "AWS_ACTION_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACTION_SECRET_ACCESS_KEY }}"
62+
63+
- name: Beanstalk Deploy
64+
uses: einaregilsson/beanstalk-deploy@v20
65+
with:
66+
aws_access_key: ${{ secrets.AWS_ACTION_ACCESS_KEY_ID }}
67+
aws_secret_key: ${{ secrets.AWS_ACTION_SECRET_ACCESS_KEY }}
68+
application_name: swacademy-prod
69+
environment_name: Swacademy-prod-env
70+
version_label: github-action-${{ steps.current-time.outputs.formattedTime }}
71+
region: ap-northeast-2
72+
deployment_package: deploy/deploy.zip
73+
wait_for_deployment: false
74+
75+

0 commit comments

Comments
 (0)