Skip to content

Commit e288692

Browse files
committed
✨ Add: Admin 기능 추가
1 parent 3259651 commit e288692

31 files changed

+8745
-58
lines changed

.env.example

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# 로컬 개발 환경을 위한 환경 변수 예시 파일
2+
# 실제 사용 시 .env 파일로 복사하고 실제 값을 입력하세요
3+
4+
# 애플리케이션 프로필 설정
5+
SPRING_PROFILES_ACTIVE=local
6+
7+
# API 키 설정
8+
WEATHER_API_KEY=sample_key
9+
TMAP_API_KEY=sample_key
10+
11+
# 데이터베이스 설정 (필요한 경우)
12+
MYSQL_URL=jdbc:mysql://root:testurl:10000
13+
MYSQL_USER=root
14+
MYSQL_PASSWORD=root
15+
16+
# 서버 포트 설정
17+
PORT=8080

.github/workflows/deploy-dev.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy to Development
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
deploy-dev:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '17'
20+
distribution: 'temurin'
21+
22+
- name: Cache Gradle dependencies
23+
uses: actions/cache@v3
24+
with:
25+
path: |
26+
~/.gradle/caches
27+
~/.gradle/wrapper
28+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
29+
restore-keys: |
30+
${{ runner.os }}-gradle-
31+
32+
- name: Grant execute permission for gradlew
33+
run: chmod +x gradlew
34+
35+
- name: Run tests
36+
run: ./gradlew test
37+
38+
- name: Build application
39+
run: ./gradlew clean build -x test
40+
41+
- name: Deploy to Railway Dev
42+
uses: railwayapp/cli@v3
43+
with:
44+
command: up --service WeSki-server-dev
45+
env:
46+
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}

.github/workflows/deploy-prod.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy to Production
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy-prod:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '17'
20+
distribution: 'temurin'
21+
22+
- name: Cache Gradle dependencies
23+
uses: actions/cache@v3
24+
with:
25+
path: |
26+
~/.gradle/caches
27+
~/.gradle/wrapper
28+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
29+
restore-keys: |
30+
${{ runner.os }}-gradle-
31+
32+
- name: Grant execute permission for gradlew
33+
run: chmod +x gradlew
34+
35+
- name: Run tests
36+
run: ./gradlew test
37+
38+
- name: Build application
39+
run: ./gradlew clean build -x test
40+
41+
- name: Deploy to Railway Prod
42+
uses: railwayapp/cli@v3
43+
with:
44+
command: up --service WeSki-server
45+
env:
46+
RAILWAY_TOKEN: ${{ secrets.RAILWAY_PROD_TOKEN }}

.github/workflows/deploy.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)