-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into feat/accept-friend-request
- Loading branch information
Showing
16 changed files
with
273 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] # push 되었을 때, 실행 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# jdk 21 환경 구성 | ||
- name: set up jdk 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '21' | ||
|
||
# Gradle wrapper 파일 실행 권한주기 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
# Gradle jib를 통한 이미지 배포 | ||
- name: update image using jib | ||
run: ./gradlew --info jib | ||
|
||
tagging: | ||
needs: | ||
- build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: set tag | ||
run: | | ||
echo "IMAGE_TAG=$(git rev-parse --short=8 HEAD)" >> $GITHUB_ENV | ||
- name: checkout infra repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: kSideProject/kpring-infra | ||
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
ref: main | ||
|
||
- name: edit infra repository tag | ||
run: | | ||
echo 'env(IMAGE_TAG)' | ||
yq eval -i '.service.tag = env(IMAGE_TAG)' ./charts/server/values.yaml | ||
yq eval -i '.service.tag = env(IMAGE_TAG)' ./charts/user/values.yaml | ||
yq eval -i '.service.tag = env(IMAGE_TAG)' ./charts/auth/values.yaml | ||
- name: commit | ||
uses: leigholiver/[email protected] | ||
with: | ||
source: . | ||
destination_repo: kSideProject/kpring-infra | ||
deploy_key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
commit_message: 'ci: update tag to env(IMAGE_TAG)' |
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,37 @@ | ||
import { TextField } from "@mui/material"; | ||
import useChatInputStore from "../../store/useChatInputStore"; | ||
import { Send } from "@mui/icons-material"; | ||
|
||
const ChatInputField = () => { | ||
const chatInputValue = useChatInputStore((state) => state.inputValue); | ||
const setChatInputValue = useChatInputStore((state) => state.setInputValue); | ||
|
||
const handleSendMessage = (e: React.FormEvent<HTMLFormElement>) => { | ||
e.preventDefault(); | ||
if (chatInputValue.trim() !== "") { | ||
setChatInputValue(chatInputValue); | ||
|
||
const event = new CustomEvent("updateBalloonText", { | ||
detail: chatInputValue, | ||
}); | ||
window.dispatchEvent(event); | ||
|
||
setChatInputValue(""); | ||
} | ||
}; | ||
|
||
return ( | ||
<form onSubmit={handleSendMessage}> | ||
<TextField | ||
type="text" | ||
value={chatInputValue} | ||
onChange={(e) => setChatInputValue(e.target.value)} | ||
sx={{ wordBreak: "break" }} | ||
/> | ||
|
||
<Send></Send> | ||
</form> | ||
); | ||
}; | ||
|
||
export default ChatInputField; |
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
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,13 @@ | ||
import create from "zustand"; | ||
|
||
interface ChatInputState { | ||
inputValue: string; | ||
setInputValue: (value: string) => void; | ||
} | ||
|
||
const useChatInputStore = create<ChatInputState>((set) => ({ | ||
inputValue: "", | ||
setInputValue: (value) => set({ inputValue: value }), | ||
})); | ||
|
||
export default useChatInputStore; |
Oops, something went wrong.