Skip to content

[Fix] 회원 친구목록 조회 시 잘못된 정보 불러오는 문제 #38

[Fix] 회원 친구목록 조회 시 잘못된 정보 불러오는 문제

[Fix] 회원 친구목록 조회 시 잘못된 정보 불러오는 문제 #38

Workflow file for this run

name: Gradle CI & CD
on:
push:
branches:
- main
permissions:
contents: read
jobs:
Build-Deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Create properties
run: |
cd favor
echo "${{ secrets.GRADLE_PROPERTIES_CONTENT }}" > gradle.properties
mkdir -p src/main/resources
echo "${{ secrets.APPLICATION_YML_CONTENT }}" > src/main/resources/application.yml
- name: Grant execute permission for gradlew
run: |
cd favor
chmod +x gradlew
- name: Build with Gradle
run: |
cd favor
./gradlew jib
- name: Deploy to Server
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST_ADDRESS }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
port : ${{ secrets.SERVER_PORT }}
script: |
docker stop ${{ secrets.APPLICATION_NAME }}
docker rm ${{ secrets.APPLICATION_NAME }}
docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}
docker run --network=host -d -p ${{ secrets.DEPLOY_PORT }}:8080 -e TZ=Asia/Seoul --name ${{ secrets.APPLICATION_NAME }} ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}