-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (71 loc) · 3.49 KB
/
server-ci-spring.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# name: Backend Spring CI
# on:
# pull_request:
# branches: [develop]
# paths:
# - "server/spring/**"
# defaults:
# run:
# working-directory: ./server/spring
# jobs:
# BACKEND-SPRING-CI:
# runs-on: ubuntu-20.04
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Set up JDK 17
# uses: actions/setup-java@v4
# with:
# java-version: 17
# distribution: "adopt"
# - name: Create application.properties
# env:
# DB_HOST_IP: ${{ secrets.SERVER_ENV_DB_HOST_IP }}
# DB_PORT: ${{ secrets.SERVER_ENV_DB_PORT }}
# DB_USER_NAME: ${{ secrets.SERVER_ENV_DB_USER_NAME }}
# DB_PASSWORD: ${{ secrets.SERVER_ENV_DB_PASSWORD }}
# DB_DATABASE_NAME: ${{ secrets.SERVER_ENV_DB_DATABASE_NAME }}
# ACCESS_ID: ${{ secrets.SERVER_ENV_ACCESS_ID }}
# SECRET_ACCESS_KEY: ${{ secrets.SERVER_ENV_SECRET_ACCESS_KEY }}
# JWT_SECRET_KEY: ${{ secrets.SERVER_ENV_JWT_SECRET_KEY }}
# GREEN_EYE_SECRET_KEY: ${{secrets.GREEN_EYE_SECRET_KEY}}
# GREEN_EYE_REQUEST_URL: ${{secrets.GREEN_EYE_REQUEST_URL}}
# CLOUD_FUNCTIONS_EXECUTE_URL: ${{secrets.CLOUD_FUNCTIONS_EXECUTE_URL}}
# CLOUD_FUNCTIONS_REQUEST_URL: ${{secrets.CLOUD_FUNCTIONS_REQUEST_URL}}
# API_GW_ACCESS_KEY: ${{secrets.API_GW_ACCESS_KEY}}
# REFRESH_SECRET_KEY: ${{secrets.REFRESH_SECRET_KEY}}
# REDIS_HOST_IP: ${{secrets.REDIS_HOST_IP}}
# REDIS_PASSWORD: ${{secrets.REDIS_PASSWORD}}
# REDIS_PORT: ${{secrets.REDIS_PORT}}
# REDIS_TTL: ${{secrets.REDIS_TTL}}
# run: |
# touch application.properties
# echo "DB_HOST_IP=$DB_HOST_IP" >> application.properties
# echo "DB_PORT=$DB_PORT" >> application.properties
# echo "DB_USER_NAME=$DB_USER_NAME" >> application.properties
# echo "DB_PASSWORD=$DB_PASSWORD" >> application.properties
# echo "DB_DATABASE_NAME=$DB_DATABASE_NAME" >> application.properties
# echo "ACCESS_ID=$ACCESS_ID" >> application.properties
# echo "SECRET_ACCESS_KEY=$SECRET_ACCESS_KEY" >> application.properties
# echo "JWT_SECRET_KEY=$JWT_SECRET_KEY" >> application.properties
# echo "GREEN_EYE_SECRET_KEY=$GREEN_EYE_SECRET_KEY" >> application.properties
# echo "GREEN_EYE_REQUEST_URL=$GREEN_EYE_REQUEST_URL" >> application.properties
# echo "CLOUD_FUNCTIONS_EXECUTE_URL=$CLOUD_FUNCTIONS_EXECUTE_URL" >> application.properties
# echo "CLOUD_FUNCTIONS_REQUEST_URL=$CLOUD_FUNCTIONS_REQUEST_URL" >> application.properties
# echo "API_GW_ACCESS_KEY=$API_GW_ACCESS_KEY" >> application.properties
# echo "REFRESH_SECRET_KEY=$REFRESH_SECRET_KEY" >> application.properties
# echo "REDIS_HOST_IP=$REDIS_HOST_IP" >> application.properties
# echo "REDIS_PASSWORD=$REDIS_PASSWORD" >> application.properties
# echo "REDIS_PORT=$REDIS_PORT" >> application.properties
# echo "REDIS_TTL=$REDIS_TTL" >> application.properties
# - name: Gradle Caching
# uses: actions/cache@v4
# with:
# path: |
# ~/.gradle/caches
# ~/.gradle/wrapper
# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
# - name: Grant execute permission for gradlew
# run: chmod +x gradlew
# - name: Test with Gradle
# run: ./gradlew --info test