Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
b4e4067
Merge pull request #408 from BCSDLab/test/406-upload-api-integration-โ€ฆ
dh2906 Mar 18, 2026
696bf3a
test: ์ฑ„ํŒ… ๊ด€๋ จ ํ†ตํ•ฉ ํ…Œ์ŠคํŠธ ์ž‘์„ฑ (#409)
dh2906 Mar 18, 2026
00ba4e2
feat: ๊ด‘๊ณ  ๊ด€๋ จ API ์ถ”๊ฐ€ (#410)
dh2906 Mar 19, 2026
48fea86
Merge pull request #411 from BCSDLab/hotfix/auth-interceptor
dh2906 Mar 19, 2026
deedd93
fix: ๊ด‘๊ณ  ์กฐํšŒ API ํ†ตํ•ฉ (#417)
dh2906 Mar 19, 2026
693e47f
test: ๊ด€๋ฆฌ์ž ์ผ์ • API ํ†ตํ•ฉ ํ…Œ์ŠคํŠธ ์ž‘์„ฑ (#415)
dh2906 Mar 19, 2026
223a83c
test: ๋™์•„๋ฆฌ ์„ค์ • ํ†ตํ•ฉ ํ…Œ์ŠคํŠธ ์ž‘์„ฑ (#416)
dh2906 Mar 19, 2026
29e06b6
hotxfix: ์ฑ„ํŒ…๋ฐฉ ๋ชฉ๋ก ์กฐํšŒ ์‘๋‹ต ์†๋„ ๊ฐœ์„  (develop) (#418)
dh2906 Mar 19, 2026
ba1026a
Revert "hotxfix: ์ฑ„ํŒ…๋ฐฉ ๋ชฉ๋ก ์กฐํšŒ ์‘๋‹ต ์†๋„ ๊ฐœ์„  (develop) (#418)" (#420)
dh2906 Mar 19, 2026
5e7ca6a
Merge pull request #421 from BCSDLab/hotfix/chat-room-performance
dh2906 Mar 20, 2026
052b7d5
chore: EOF ์ถ”๊ฐ€ (#423)
dh2906 Mar 20, 2026
e616c31
feat: ๊ตฌ๊ธ€ ์Šคํ”„๋ ˆ๋“œ์‹œํŠธ API MVP ๊ตฌํ˜„ (#397)
JanooGwan Mar 20, 2026
fcdedca
fix: ์ด๋ฏธ์ง€ ์—…๋กœ๋“œ ์‹œ ํ•ด์ƒ๋„ ๊ฒ€์ฆ ๋กœ์ง ์ œ๊ฑฐ (#424)
dh2906 Mar 21, 2026
6195ed8
fix: ์—…๋กœ๋“œ ํŒŒ์ผ ์šฉ๋Ÿ‰ ์ดˆ๊ณผ ์—๋Ÿฌ ๋ถ€๋ชจ ํ•ธ๋“ค๋Ÿฌ ๋ฉ”์†Œ๋“œ ์˜ค๋ฒ„๋ผ์ด๋”ฉ ๋ฐฉ์‹์œผ๋กœ ์ˆ˜์ • (#425)
dh2906 Mar 21, 2026
9f7c264
feat: ์ด๋ฏธ์ง€ ๋ฆฌ์‚ฌ์ด์ง• ๋กœ์ง ์ถ”๊ฐ€ (#426)
dh2906 Mar 21, 2026
2914b7f
fix: ์ด๋ฏธ์ง€ ๋ฆฌ์‚ฌ์ด์ง• ์‹œ ํ€„๋ฆฌํ‹ฐ 1 -> 0.8๋กœ ์ˆ˜์ • (#427)
dh2906 Mar 21, 2026
c3d6730
fix: ์ด๋ฏธ์ง€ ๋ฆฌ์‚ฌ์ด์ง• ๋กœ์ง ์ œ๊ฑฐ (#428)
dh2906 Mar 22, 2026
58279be
refactor: ์ฑ„ํŒ…๋ฐฉ ์กฐํšŒ ์„ฑ๋Šฅ ๊ฐœ์„  (#429)
dh2906 Mar 22, 2026
4e773cd
feat: APM ํŠธ๋ ˆ์ด์‹ฑ์„ ์œ„ํ•œ ์„ค์ • (#430)
dh2906 Mar 22, 2026
7208e13
Merge pull request #431 from BCSDLab/hotfix/build-env
dh2906 Mar 22, 2026
663f48a
feat: Google Sheets API ๋ฆฌํŒฉํ† ๋ง
JanooGwan Mar 22, 2026
6eff288
Merge pull request #434 from BCSDLab/hotfix/link-oauth-duplicate
dh2906 Mar 23, 2026
006625a
refactor: Google Sheet API - Sheet ์ƒ์„ฑ ์‹œ ๊ถŒํ•œ ์ž๋™ ์ถ”๊ฐ€
JanooGwan Mar 23, 2026
f77158a
fix: Google Sheet ํŒŒ์ผ ์ƒ์„ฑ ์œ„์น˜ ์˜ค๋ฅ˜ & ๊ถŒํ•œ ์„ค์ • ๊ด€๋ จ ์˜ค๋ฅ˜ ์ˆ˜์ •
JanooGwan Mar 23, 2026
a2d71bf
fix: Google Sheet ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ ๋ฒ„๊ทธ ์ˆ˜์ •
JanooGwan Mar 24, 2026
5e464eb
refactor: Google Sheet API ์ „ํ™”๋ฒˆํ˜ธ ํฌ๋งทํŒ… ๋ฐ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ ๋ฒ„๊ทธ ์ˆ˜์ •
JanooGwan Mar 24, 2026
23852c0
feat: ์ธ์•ฑ ์•Œ๋ฆผ ๊ธฐ๋Šฅ ์ถ”๊ฐ€ (#436)
JanooGwan Mar 25, 2026
6f5656c
docs: ์ธ์•ฑ ๊ด€๋ จ API์—์„œ ์‘๋‹ต DTO์— ๋ˆ„๋ฝ๋œ ๋ช…์„ธ ์ถ”๊ฐ€ (#441)
dh2906 Mar 25, 2026
e4d1915
fix: ์ธ์•ฑ ์•Œ๋ฆผ SSE ์—ฐ๊ฒฐ ๋ฌธ์ œ ํ•ด๊ฒฐ (#442)
dh2906 Mar 25, 2026
2e75b9e
build: JDK ๋ฒ„์ „ 17 -> 21 ์—…๊ทธ๋ ˆ์ด๋“œ (#443)
dh2906 Mar 26, 2026
617db71
fix: ์ธํ„ฐ์…‰ํ„ฐ ์˜ˆ์™ธ ํ•ธ๋“ค๋ง ๋ฌธ์ œ ํ•ด๊ฒฐ (#444)
dh2906 Mar 26, 2026
3888548
refactor: ์•Œ๋ฆผ ๋ฐœ์†ก ์†๋„ ๊ฐœ์„  (#447)
dh2906 Mar 27, 2026
6c81e4d
refactor: ์ธ์•ฑ ์•Œ๋ฆผ์˜ ํŠธ๋žœ์žญ์…˜ ์ „ํŒŒ ์˜ต์…˜ ์ œ๊ฑฐ (#448)
dh2906 Mar 27, 2026
7d60fe3
fix: ๊ด‘๊ณ  ๋žœ๋ค ์กฐํšŒ์˜ ๋ฐ˜๋ณต ๋‹จ๊ฑด ์กฐํšŒ๋ฅผ ์ œ๊ฑฐํ•ด ์ฟผ๋ฆฌ ํšŸ์ˆ˜๋ฅผ ์ค„์ž„ (#449)
dh2906 Mar 28, 2026
6ce7b4d
fix: SSE ๊ตฌ๋… ์ธ์ฆ ์‹คํŒจ ์‹œ ErrorResponse ์ง๋ ฌํ™” ์ถฉ๋Œ (#452)
dh2906 Mar 28, 2026
bc92d72
fix: SSE ํ™˜๊ฒฝ์—์„œ ์ปค๋„ฅ์…˜ ์ ์œ  ๋ฐฉ์ง€๋ฅผ ์œ„ํ•ด open-in-view ๋น„ํ™œ์„ฑํ™” (#453)
dh2906 Mar 28, 2026
bf81538
feat: ๋ฐฐ์น˜ ์‚ฌ์ด์ฆˆ ์„ค์ • ์ถ”๊ฐ€ (#455)
dh2906 Mar 28, 2026
35c1c5b
feat: ์ฑ„ํŒ… ๋ฉ”์‹œ์ง€ยท์•Œ๋ฆผ ์ธ๋ฐ•์Šค ์กฐํšŒ ์„ฑ๋Šฅ ๊ฐœ์„ ์„ ์œ„ํ•œ ์ธ๋ฑ์Šค ์ถ”๊ฐ€ (#458)
dh2906 Mar 29, 2026
304b723
ci: ๋นŒ๋“œ ์‹œ๊ฐ„ ๊ฐœ์„  (#461)
dh2906 Mar 30, 2026
9daf25d
fix: GitHub Actions์—์„œ $HOME ๊ฒฝ๋กœ ๋ณ€์ˆ˜๋กœ ์ •๊ทœํ™”
dh2906 Mar 30, 2026
3f09696
feat: ์ฑ„ํŒ…๋ฐฉ ์ด๋ฆ„ ์ˆ˜์ • ๊ธฐ๋Šฅ ์ถ”๊ฐ€ (#462)
dh2906 Mar 30, 2026
03e5d7c
feat: 1๋Œ€1 ์ฑ„ํŒ…๋ฐฉ ๋‚˜๊ฐ€๊ธฐ ๊ธฐ๋Šฅ ์ถ”๊ฐ€ (#463)
dh2906 Mar 31, 2026
8c3db7e
Merge pull request #465 from BCSDLab/refactor/CAM-278-docker-build-perf
dh2906 Mar 31, 2026
25a2df6
fix: ์ฑ„ํŒ…๋ฐฉ ์ปค๋„ฅ์…˜ ํ’€ ๊ณ ๊ฐˆ ๋ฌธ์ œ ํ•ด๊ฒฐ (#459)
JanooGwan Mar 31, 2026
70ee2e8
feat: ์ฑ„ํŒ…๋ฐฉ์— ์ดˆ๋Œ€ ๊ฐ€๋Šฅํ•œ ์œ ์ € ๋ชฉ๋ก ์กฐํšŒ ๊ธฐ๋Šฅ ์ถ”๊ฐ€ (#468)
dh2906 Mar 31, 2026
e6ee8e5
fix: Google ์ธ์ฆ ํŒŒ์ผ ๊ฒฝ๋กœ classpath ์ฒ˜๋ฆฌ ์ถ”๊ฐ€ (#469)
dh2906 Mar 31, 2026
5ec7684
feat: ๊ตฌ๊ธ€ ์‹œํŠธ ํ†ตํ•ฉ import api ์ถ”๊ฐ€ (#471)
JanooGwan Mar 31, 2026
4170cb1
feat: ์ฑ„ํŒ…๋ฐฉ ๊ฒ€์ƒ‰ ๊ธฐ๋Šฅ ์ถ”๊ฐ€
JanooGwan Mar 31, 2026
61cea28
feat: ๊ทธ๋ฃน ์ฑ„ํŒ…๋ฐฉ ์ƒ์„ฑ ๊ธฐ๋Šฅ ์ถ”๊ฐ€ (#472)
dh2906 Apr 1, 2026
72584a1
fix: saveAll ๋ฐ˜ํ™˜ ํƒ€์ž… ์ˆ˜์ •์œผ๋กœ ํ˜ธ์ถœ ๋ถ€ ์˜ค๋ฅ˜ ํ•ด๊ฒฐ (#476)
dh2906 Apr 1, 2026
6a55772
fix: ์ฑ„ํŒ… ๊ด€๋ จ ์ธ์•ฑ ์•Œ๋ฆผ ์ œ์™ธ
JanooGwan Apr 1, 2026
f28a0c4
fix: ๊ตฌ๊ธ€ ์‹œํŠธ 403 ์‘๋‹ต ์ฒ˜๋ฆฌ ๋ฐ ๊ถŒํ•œ ๋ถ€์—ฌ ๋ณด๊ฐ•
JanooGwan Apr 1, 2026
0756c6a
test: ํƒ€์ด๋จธ ๋™๊ธฐํ™” ๋ฐ ์ค‘์ง€ ํ…Œ์ŠคํŠธ ์ผ€์ด์Šค ์ถ”๊ฐ€ (#481)
dh2906 Apr 1, 2026
a4fbc3f
test: ํšŒ์›๊ฐ€์ž… API ํ†ตํ•ฉ ํ…Œ์ŠคํŠธ ์ถ”๊ฐ€ (#487)
dh2906 Apr 1, 2026
13b7f10
test: ํšŒ์› ํƒˆํ‡ด API ํ†ตํ•ฉ ํ…Œ์ŠคํŠธ ์ถ”๊ฐ€ (#488)
dh2906 Apr 1, 2026
e605057
test: ๋™์•„๋ฆฌ ์Šน์ธ ๋ฉค๋ฒ„ ์ง€์›์„œ API ํ†ตํ•ฉ ํ…Œ์ŠคํŠธ ์ถ”๊ฐ€ (#486)
dh2906 Apr 1, 2026
7f80d07
fix: ๊ตฌ๊ธ€ Sheet ๊ถŒํ•œ ๊ด€๋ จ ์‘๋‹ต ์ˆ˜์ •
JanooGwan Apr 1, 2026
e6253cd
feat: Google Drive ๊ถŒํ•œ ์—ฐ๊ฒฐ URL ์กฐํšŒ API ์ถ”๊ฐ€
JanooGwan Apr 1, 2026
6782851
fix: ์‹œํŠธ ๋™๊ธฐํ™” ์‹œ ์‚ฌ์ „ ํšŒ์› ์œ ์ง€
JanooGwan Apr 1, 2026
39e9e5c
Merge branch 'main' into develop
dh2906 Apr 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**

!Dockerfile
!.dockerignore
!build/
!build/libs/
!build/libs/KONECT_API.jar
!opentelemetry-javaagent.jar
160 changes: 80 additions & 80 deletions .github/workflows/checkstyle.yml
Original file line number Diff line number Diff line change
@@ -1,80 +1,80 @@
name: Checkstyle
on:
pull_request:
branches:
- main
- develop
push:
branches:
- main
- develop
permissions:
contents: read
pull-requests: write
jobs:
checkstyle:
name: Code Style Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_TOKEN }}
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run Checkstyle
run: ./gradlew checkstyleMain --no-daemon
- name: Upload Checkstyle Report
if: failure()
uses: actions/upload-artifact@v4
with:
name: checkstyle-report
path: |
build/reports/checkstyle/main.html
build/reports/checkstyle/main.xml
retention-days: 7
- name: Comment PR with Checkstyle Results
if: github.event_name == 'pull_request' && failure()
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const fs = require('fs');
const path = require('path');
let comment = '## โš ๏ธ Checkstyle ์œ„๋ฐ˜ ์‚ฌํ•ญ ๋ฐœ๊ฒฌ\n\n';
comment += 'Checkstyle ๊ฒ€์‚ฌ์—์„œ ์ฝ”๋”ฉ ์ปจ๋ฒค์…˜ ์œ„๋ฐ˜์ด ๋ฐœ๊ฒฌ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.\n\n';
comment += '### ๐Ÿ“‹ ์ƒ์„ธ ๋ฆฌํฌํŠธ\n';
comment += '- [Main ์†Œ์Šค ๋ฆฌํฌํŠธ ๋‹ค์šด๋กœ๋“œ](../actions/runs/${{ github.run_id }})\n';
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: comment
});
name: Checkstyle

on:
pull_request:
branches:
- main
- develop
push:
branches:
- main
- develop

permissions:
contents: read
pull-requests: write

jobs:
checkstyle:
name: Code Style Check
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_TOKEN }}

- name: Set up JDK 21
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4
with:
java-version: '21'
distribution: 'temurin'

- name: Cache Gradle packages
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Run Checkstyle
run: ./gradlew checkstyleMain --no-daemon

- name: Upload Checkstyle Report
if: failure()
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: checkstyle-report
path: |
build/reports/checkstyle/main.html
build/reports/checkstyle/main.xml
retention-days: 7

- name: Comment PR with Checkstyle Results
if: github.event_name == 'pull_request' && failure()
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const fs = require('fs');
const path = require('path');

let comment = '## โš ๏ธ Checkstyle ์œ„๋ฐ˜ ์‚ฌํ•ญ ๋ฐœ๊ฒฌ\n\n';
comment += 'Checkstyle ๊ฒ€์‚ฌ์—์„œ ์ฝ”๋”ฉ ์ปจ๋ฒค์…˜ ์œ„๋ฐ˜์ด ๋ฐœ๊ฒฌ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.\n\n';
comment += '### ๐Ÿ“‹ ์ƒ์„ธ ๋ฆฌํฌํŠธ\n';
comment += '- [Main ์†Œ์Šค ๋ฆฌํฌํŠธ ๋‹ค์šด๋กœ๋“œ](../actions/runs/${{ github.run_id }})\n';

github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: comment
});
6 changes: 3 additions & 3 deletions .github/workflows/deploy-monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Transfer monitoring configs to server
uses: appleboy/scp-action@v0.1.7
uses: appleboy/scp-action@917f8b81dfc1ccd331fef9e2d61bdc6c8be94634 # v0.1.7
with:
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SERVER_USER }}
Expand All @@ -27,7 +27,7 @@ jobs:
rm: false

- name: Deploy monitoring stack
uses: appleboy/ssh-action@v0.1.8
uses: appleboy/ssh-action@v1.2.0
env:
WORK_DIR: ${{ secrets.PROD_WORK_DIR }}
MONITORING_ENV: ${{ secrets.MONITORING_ENV }}
Expand Down
51 changes: 40 additions & 11 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Set up JDK 21
uses: actions/setup-java@v4
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4
with:
java-version: '21'
distribution: 'temurin'

- name: Cache Gradle packages
uses: actions/cache@v4
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: |
~/.gradle/caches
Expand All @@ -29,6 +29,23 @@ jobs:
restore-keys: |
gradle-${{ runner.os }}-

- name: Cache OpenTelemetry Java Agent
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/.cache/otel-java-agent
key: otel-agent-${{ runner.os }}-${{ vars.OTEL_JAVA_AGENT_VERSION }}-${{ vars.OTEL_JAVA_AGENT_SHA256 }}

- name: Prepare OpenTelemetry Agent
run: |
mkdir -p ~/.cache/otel-java-agent
if [ ! -f ~/.cache/otel-java-agent/opentelemetry-javaagent.jar ]; then
wget -O ~/.cache/otel-java-agent/opentelemetry-javaagent.jar \
"https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v${{ vars.OTEL_JAVA_AGENT_VERSION }}/opentelemetry-javaagent.jar"
fi
# Verify checksum
echo "${{ vars.OTEL_JAVA_AGENT_SHA256 }} $HOME/.cache/otel-java-agent/opentelemetry-javaagent.jar" | sha256sum -c -
cp ~/.cache/otel-java-agent/opentelemetry-javaagent.jar .

- name: Grant execute permission for gradlew
run: chmod +x gradlew

Expand All @@ -38,46 +55,49 @@ jobs:
source .env.example
set +a
unset JAVA_TOOL_OPTIONS
./gradlew clean build -x test -Dspring.profiles.active=prod
./gradlew bootJar -x test --build-cache -Dspring.profiles.active=prod

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3

- name: Login to Docker Hub
uses: docker/login-action@v3
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
with:
images: soundbar91/konect-prod
tags: |
type=raw,value=latest
type=sha,prefix=sha-

- name: Build and push Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
context: .
platforms: linux/amd64,linux/arm64
platforms: linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
OTEL_JAVA_AGENT_VERSION=${{ vars.OTEL_JAVA_AGENT_VERSION }}

- name: Backup prod MySQL before deploy
uses: appleboy/ssh-action@v0.1.8
uses: appleboy/ssh-action@v1.2.0
with:
host: ${{ secrets.PROD_SERVER_IP }}
username: ${{ secrets.PROD_SERVER_USER }}
key: ${{ secrets.PROD_SERVER_SSH_KEY }}
port: ${{ secrets.PROD_SERVER_PORT }}
script: |
set -euo pipefail
START_TIME=$(date +%s)

WORK_DIR="${{ secrets.PROD_WORK_DIR }}"
MYSQL_CONTAINER="mysql-prod"
Expand All @@ -96,13 +116,22 @@ jobs:

find "$BACKUP_DIR" -type f -name '*.sql' -mtime +30 -delete

END_TIME=$(date +%s)
echo "Prod MySQL backup completed in $((END_TIME - START_TIME))s"

- name: Deploy to prod server
uses: appleboy/ssh-action@v0.1.8
uses: appleboy/ssh-action@v1.2.0
with:
host: ${{ secrets.PROD_SERVER_IP }}
username: ${{ secrets.PROD_SERVER_USER }}
key: ${{ secrets.PROD_SERVER_SSH_KEY }}
port: ${{ secrets.PROD_SERVER_PORT }}
script: |
set -euo pipefail
START_TIME=$(date +%s)

cd ${{ secrets.PROD_WORK_DIR }}
./deploy.sh

END_TIME=$(date +%s)
echo "Prod deploy.sh completed in $((END_TIME - START_TIME))s"
Loading
Loading